Skip to content
Prev Previous commit
Revert return
  • Loading branch information
jeschkies committed Dec 30, 2024
commit be07020f45303450c0b4a4126753f0e5a2657395
3 changes: 2 additions & 1 deletion pkg/logql/count_min_sketch.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,9 @@ func (v *HeapCountMinSketchVector) Push(x any) {
func (v *HeapCountMinSketchVector) Pop() any {
old := v.Metrics
n := len(old)
x := old[n-1]
v.Metrics = old[0 : n-1]
return old[n-1]
return x
}

// JoinCountMinSketchVector joins the results from stepEvaluator into a CountMinSketchVector.
Expand Down
Loading