mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-02-09 15:27:11 +00:00
app/vmselect/promql: skip NaN values in count_values
func
This commit is contained in:
parent
cbe692f0e2
commit
bf9782eaf6
1 changed files with 3 additions and 0 deletions
|
@ -301,6 +301,9 @@ func aggrFuncCountValues(afa *aggrFuncArg) ([]*timeseries, error) {
|
||||||
m := make(map[float64]bool)
|
m := make(map[float64]bool)
|
||||||
for _, ts := range tss {
|
for _, ts := range tss {
|
||||||
for _, v := range ts.Values {
|
for _, v := range ts.Values {
|
||||||
|
if math.IsNaN(v) {
|
||||||
|
continue
|
||||||
|
}
|
||||||
m[v] = true
|
m[v] = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue