Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upmax_over_time treats NaN as the max #4385
Comments
This comment has been minimized.
This comment has been minimized.
|
Thanks for the report. We must have not fixed this for min/max while we were doing the others. |
brian-brazil
added
kind/bug
component/promql
priority/P3
labels
Jul 14, 2018
This comment has been minimized.
This comment has been minimized.
|
I can submit a PR with the test+fix. What is the desired behavior? Should NaNs be treated as the smallest thing? Or excluded from comparison? Personally seems like they should be excluded, but either way works for me. |
This comment has been minimized.
This comment has been minimized.
|
We should do the same as |
jacksontj
referenced this issue
Jul 14, 2018
Merged
Change max/min over_time to handle NaNs properly #4386
This comment has been minimized.
This comment has been minimized.
|
#4386 with the fix and some tests. I noticed that |
This comment has been minimized.
This comment has been minimized.
|
@jacksontj It's not clear to me what the right behavior of |
This comment has been minimized.
This comment has been minimized.
|
I'm not sure what the right behaviour is there either, I'd say we wait until a use case comes up. |
jacksontj
added a commit
to jacksontj/prometheus
that referenced
this issue
Sep 25, 2018
brian-brazil
closed this
in
#4386
Sep 26, 2018
brian-brazil
added a commit
that referenced
this issue
Sep 26, 2018
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 25, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
jacksontj commentedJul 14, 2018
Bug Report
What did you do?
a simple query like
max_over_time(foo[30m])What did you expect to see?
I expected to see the largest value
What did you see instead? Under which circumstances?
If there was a single
NaNin the time range then the value returned is NaN. I made an example test case (which fails) to showcase the issue: jacksontj@a36f351Environment
Prometheus version:
verified on 2.2, 2.3, and master