mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
app/vmselect/promql: fix any(..)
calculations - return all the data points instead of the first one
This commit is contained in:
parent
a6f16dcc11
commit
faf92a0965
1 changed files with 3 additions and 1 deletions
|
@ -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 a new issue