-
Notifications
You must be signed in to change notification settings - Fork 551
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
Cast directly from new PromQL FPoint and HPoint to mimirpb equivalents #4775
Merged
Conversation
This file contains 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
3 tasks
a199cd9
to
bce1bf7
Compare
charleskorn
reviewed
Apr 20, 2023
6d4bd97
to
916665b
Compare
colega
reviewed
Apr 24, 2023
colega
reviewed
Apr 24, 2023
colega
reviewed
Apr 24, 2023
charleskorn
reviewed
Apr 26, 2023
4da5cfd
to
d0a8045
Compare
c3b3fe9
to
c6da0be
Compare
c6da0be
to
e81e16f
Compare
…ng after FloatHistogramPair was changed to use pointers
e81e16f
to
85b72ec
Compare
85b72ec
to
6366aab
Compare
krajorama
reviewed
May 16, 2023
krajorama
previously approved these changes
May 17, 2023
I would suggest to add this small addition to the unit tests so we don't have to rely on the integration tests for catching the loop variable problem:
|
krajorama
reviewed
May 17, 2023
krajorama
approved these changes
May 18, 2023
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.
LGTM
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.
What this PR does
Allow casting directly from
promql.FPoint
s tomimirpb.Sample
s,promql.HPoint
s tomimirpb.FloatHistogramPair
s andhistogram.Span
s to/frommimirpb.BucketSpan
s to optimise performance. However, this requires using a pointer inFloatHistogramPair
where there wasn't one before, so not sure if we want to keep that part.Renaming is not done yet. That should probably be done separately, if at all. Not sure if it will be confusing since we've been using
Sample
for so long, and it will affect much of the codebase, so we need agreement from more people, and maybe also discuss what else we should be renaming for consistency.Benchmark results here
Which issue(s) this PR fixes or relates to
Fixes #3738 and #4742
Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]
(not needed for optimisation)