app/vmselect/promql: fix any(..) calculations - return all the data points instead of the first one

This commit is contained in:
Aliaksandr Valialkin 2020-05-12 20:26:44 +03:00
parent 3d3f41b961
commit 18a0caee43

View File

@ -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...)
}