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 a6f16dcc11
commit faf92a0965

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