mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-15 00:13:30 +01:00
app/vmselect/promql: fix any(..)
calculations - return all the data points instead of the first one
This commit is contained in:
parent
3d3f41b961
commit
18a0caee43
@ -470,7 +470,9 @@ func updateAggrAny(iac *incrementalAggrContext, values []float64) {
|
||||
if dstCounts[0] > 0 {
|
||||
return
|
||||
}
|
||||
dstCounts[0] = 1
|
||||
for i := range values {
|
||||
dstCounts[i] = 1
|
||||
}
|
||||
dstValues = append(dstValues[:0], values...)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user