mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-03-11 15:34:56 +00: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
1 changed files with 3 additions and 1 deletions
|
@ -470,7 +470,9 @@ func updateAggrAny(iac *incrementalAggrContext, values []float64) {
|
||||||
if dstCounts[0] > 0 {
|
if dstCounts[0] > 0 {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
dstCounts[0] = 1
|
for i := range values {
|
||||||
|
dstCounts[i] = 1
|
||||||
|
}
|
||||||
dstValues = append(dstValues[:0], values...)
|
dstValues = append(dstValues[:0], values...)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue