prometheus/promql/testdata
Callum Styan 5bb7f00d00
change labelset comparison in promql engine to avoid false positive during detection of duplicates (#7058)
* Use go1.14 new hash/maphash to hash both RHS and LHS instead of XOR'ing
which has been resulting in hash collisions.

Signed-off-by: Callum Styan <callumstyan@gmail.com>

* Refactor engine labelset signature generation, just use labels.Labels
instead of hashes.

Signed-off-by: Callum Styan <callumstyan@gmail.com>

* Address review comments; function comments + store result of
lhs.String+rhs.String as key.

Signed-off-by: Callum Styan <callumstyan@gmail.com>

* Replace all signatureFunc usage with signatureFuncString.

Signed-off-by: Callum Styan <callumstyan@gmail.com>

* Make optimizations to labels String function and generation of rhs+lhs
as string in resultMetric.

Signed-off-by: Callum Styan <callumstyan@gmail.com>

* Use separate string functions that don't use strconv just for engine
maps.

Signed-off-by: Callum Styan <callumstyan@gmail.com>

* Use a byte invalid separator instead of quoting and have a buffer
attached to EvalNodeHelper instead of using a global pool in the labels
package.

Signed-off-by: Callum Styan <callumstyan@gmail.com>

* Address review comments.

Signed-off-by: Callum Styan <callumstyan@gmail.com>

* Address more review comments, labels has a function that now builds a
byte slice without turning it into a string.

Signed-off-by: Callum Styan <callumstyan@gmail.com>

* Use two different non-ascii hex codes as byte separators between labels
and between sets of labels when building bytes of a Labels struct.

Signed-off-by: Callum Styan <callumstyan@gmail.com>

* We only need the 2nd byte invalid sep. at the beginning of a
labels.Bytes

Signed-off-by: Callum Styan <callumstyan@gmail.com>
2020-05-12 14:03:15 -07:00
..
aggregators.test PromQL: Fix string and parentheses handling in engine (#6612) 2020-01-15 18:31:58 +01:00
collision.test change labelset comparison in promql engine to avoid false positive during detection of duplicates (#7058) 2020-05-12 14:03:15 -07:00
functions.test PromQL: Fix string and parentheses handling in engine (#6612) 2020-01-15 18:31:58 +01:00
histograms.test In histogram_quantile merge buckets with equivalent le values (#5158) 2019-02-01 10:22:44 +00:00
legacy.test add absent_over_time (#6490) 2020-01-03 15:26:12 +00:00
literals.test PromQL: Fix string and parentheses handling in engine (#6612) 2020-01-15 18:31:58 +01:00
operators.test PromQL: Fix string and parentheses handling in engine (#6612) 2020-01-15 18:31:58 +01:00
selectors.test Add tests for negative selectors. (#3616) 2017-12-23 14:06:37 +00:00
staleness.test Remove 4 interval staleness heuristic. (#3244) 2017-10-05 12:55:14 +01:00
subquery.test PromQL: Fix string and parentheses handling in engine (#6612) 2020-01-15 18:31:58 +01:00