Skip to content
Prev Previous commit
Next Next commit
Correct test
  • Loading branch information
jeschkies committed Dec 18, 2024
commit 5ffb7339f898ab048a7319485a51b65b18e676fc
2 changes: 1 addition & 1 deletion pkg/logql/count_min_sketch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func TestCountMinSketchSerialization(t *testing.T) {
Sketch: &logproto.CountMinSketch{
Depth: 2,
Width: 4,
Counters: []float64{0, 0, 0, 42, 0, 42, 0, 0},
Counters: []float64{0, 42, 0, 0, 0, 42, 0, 0},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why was this change needed? how was the test failing?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using the labels.Bytes change that hash values. That's why the position of 42 is different.

Hyperloglog: hllBytes,
},
Metrics: []*logproto.Labels{
Expand Down
Loading