-
Notifications
You must be signed in to change notification settings - Fork 9.8k
[FIX] PromQL: Ignore histograms in scalar
, sort
and sort_desc
functions
#15964
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
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: Neeraj Gartia <neerajgartia211002@gmail.com>
Signed-off-by: Neeraj Gartia <neerajgartia211002@gmail.com>
beorn7
requested changes
Feb 5, 2025
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.
Scalar implementation looks good, but we have to make the filtering less costly.
Signed-off-by: Neeraj Gartia <neerajgartia211002@gmail.com>
beorn7
approved these changes
Feb 6, 2025
francoposa
pushed a commit
to francoposa/prometheus
that referenced
this pull request
Feb 11, 2025
…unctions (prometheus#15964) PromQL: Ignore histograms in scalar, sort and sort_desc functions --------- Signed-off-by: Neeraj Gartia <neerajgartia211002@gmail.com>
charleskorn
added a commit
to grafana/mimir
that referenced
this pull request
Mar 7, 2025
charleskorn
added a commit
to grafana/mimir
that referenced
this pull request
Mar 11, 2025
charleskorn
added a commit
to grafana/mimir
that referenced
this pull request
Mar 12, 2025
charleskorn
added a commit
to grafana/mimir
that referenced
this pull request
Mar 12, 2025
charleskorn
added a commit
to grafana/mimir
that referenced
this pull request
Mar 12, 2025
* Upgrade mimir-prometheus * Bring in upstream test changes * Apply change to match prometheus/prometheus#15974 * Remove test case added in upstream in prometheus/prometheus#15975 * Add tests for case where range vector selectors and subqueries have 0 range Brings in change from #10586 * Update `sort` and `sort_desc` behaviour to match prometheus/prometheus#15964 * Add support for native histograms to `irate` and `idelta` to match prometheus/prometheus#15853 * Adjust test cases to match support for native histograms in `irate` and `idelta` * Change binop annotations to match behaviour in prometheus/prometheus#15895 * Ignore incompatible schemas between the first and second point in `rate` and `increase` if the second point is a reset (prometheus/prometheus#15902) * Adjust annotation test cases to match new behaviour introduced in previous commit * Disable tests failing due to prometheus/prometheus#16199 * Add changelog entry * Update `TestQuerySharding_FunctionCorrectness` to reflect changes in prometheus/prometheus#15964
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Part of #13934
This PR ignores histograms in
scalar
,sort
andsort_desc
.scalar
if more or less than one float is found thenNaN
is returned else the float sample is returned as scalar.sort
andsort_desc
first floats are filtered and then sorted usingvectorByValueHeap
.CC: @beorn7