mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-11 14:53:49 +00:00
8357c22cc8
Previously, for `^` aka pow function calls, VictoriaMetrics returned `1`
if left arg was Nan. For example, given query=`(hour()==2)^1` returns 1
for NaN produced by hour() == 2 function. It added additional non-exist
datapoints to the timeseries.
This commit port bugfix from `metricql` package and adds test for it.
Now, VictoriaMetrics
correctly returns `NaN` for such cases.
Related issue:
https://github.com/VictoriaMetrics/VictoriaMetrics/issues/7359
Signed-off-by: f41gh7 <nik@victoriametrics.com>
(cherry picked from commit
|
||
---|---|---|
.. | ||
registry | ||
aliases.go | ||
dll_windows.go | ||
env_windows.go | ||
eventlog.go | ||
exec_windows.go | ||
memory_windows.go | ||
mkerrors.bash | ||
mkknownfolderids.bash | ||
mksyscall.go | ||
race.go | ||
race0.go | ||
security_windows.go | ||
service.go | ||
setupapi_windows.go | ||
str.go | ||
syscall.go | ||
syscall_windows.go | ||
types_windows.go | ||
types_windows_386.go | ||
types_windows_amd64.go | ||
types_windows_arm.go | ||
types_windows_arm64.go | ||
zerrors_windows.go | ||
zknownfolderids_windows.go | ||
zsyscall_windows.go |