app/vmselect/promql: skip NaN values in count_values func

This commit is contained in:
Aliaksandr Valialkin 2019-06-10 22:42:03 +03:00
parent 2d7165033a
commit a6f368499d

View File

@ -301,6 +301,9 @@ func aggrFuncCountValues(afa *aggrFuncArg) ([]*timeseries, error) {
m := make(map[float64]bool)
for _, ts := range tss {
for _, v := range ts.Values {
if math.IsNaN(v) {
continue
}
m[v] = true
}
}