-
Notifications
You must be signed in to change notification settings - Fork 9.8k
promql: fix incorrect results and panics in sum
and avg
over mixed custom and exponential buckets, or incompatible custom buckets
#14611
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…ncompatible custom buckets, produces incorrect results Signed-off-by: Charles Korn <charles.korn@grafana.com>
…ncompatible custom buckets, produces incorrect results or panics Signed-off-by: Charles Korn <charles.korn@grafana.com>
Signed-off-by: Charles Korn <charles.korn@grafana.com>
Thank you. Related to #13494 |
…tions (#8924) * Enable histogram test cases. * Enable test cases we now support * Emit warnings from `rate` and `sum` if a custom and exponential buckets are seen at the same timestamp, or if incompatible custom buckets are seen at the same timestamp * Add changelog entry # Conflicts: # CHANGELOG.md * Address PR feedback: move custom bucket check earlier in `rate` * Address PR feedback: clarify comments * Address PR feedback: extend test case range to include samples after an ignored sample * Skip `TestAnnotations` test case that fails on Prometheus' engine due to prometheus/prometheus#14609 * Skip test cases that fail on Prometheus' engine due to prometheus/prometheus#14611 * Fix failing test
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you very much. Looks good, just ideas about naming and more tests.
Signed-off-by: Charles Korn <charles.korn@grafana.com>
Signed-off-by: Charles Korn <charles.korn@grafana.com>
…stograms Signed-off-by: Charles Korn <charleskorn@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you very much.
@charleskorn could you resolve the merge conflicts once more? I'll try to merge ASAP after that. |
…stograms # Conflicts: # promql/promqltest/testdata/native_histograms.test
Yep, done. |
#9156) * Update mimir-prometheus Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com> * DefaultChunkedReadLimit was moved from storage to config Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com> * Adopt to new remote read client interface Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com> * Update otlp generate code Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com> * OTLP: ignore annotations for now Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com> * Remote read Content-Type unset in tests Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com> * Use client_golang 1.19.1 Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com> * Update engine test cases from upstream Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com> * Mark unsupported engine expressions Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com> * Disable test that assumes the newly added `promql-delayed-name-removal` flag is enabled * Re-enable running MQE test cases against Prometheus' engine now that prometheus/prometheus#14611 has been merged * Updates due to review Add changelog. Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com> --------- Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com> Co-authored-by: Charles Korn <charles.korn@grafana.com>
#9156) * Update mimir-prometheus Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com> * DefaultChunkedReadLimit was moved from storage to config Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com> * Adopt to new remote read client interface Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com> * Update otlp generate code Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com> * OTLP: ignore annotations for now Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com> * Remote read Content-Type unset in tests Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com> * Use client_golang 1.19.1 Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com> * Update engine test cases from upstream Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com> * Mark unsupported engine expressions Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com> * Disable test that assumes the newly added `promql-delayed-name-removal` flag is enabled * Re-enable running MQE test cases against Prometheus' engine now that prometheus/prometheus#14611 has been merged * Updates due to review Add changelog. Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com> --------- Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com> Co-authored-by: Charles Korn <charles.korn@grafana.com> (cherry picked from commit 61634ee)
#9156) (#9176) * Update mimir-prometheus Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com> * DefaultChunkedReadLimit was moved from storage to config Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com> * Adopt to new remote read client interface Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com> * Update otlp generate code Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com> * OTLP: ignore annotations for now Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com> * Remote read Content-Type unset in tests Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com> * Use client_golang 1.19.1 Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com> * Update engine test cases from upstream Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com> * Mark unsupported engine expressions Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com> * Disable test that assumes the newly added `promql-delayed-name-removal` flag is enabled * Re-enable running MQE test cases against Prometheus' engine now that prometheus/prometheus#14611 has been merged * Updates due to review Add changelog. Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com> --------- Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com> Co-authored-by: Charles Korn <charles.korn@grafana.com> (cherry picked from commit 61634ee) Co-authored-by: George Krajcsovits <krajorama@users.noreply.github.com>
sum
andavg
could return incorrect results, or, in the case ofavg
, panic, if mixed custom and exponential buckets were encountered at a single timestamp, or if incompatible custom buckets were encountered at a single timestamp.