-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
compact: implement native histogram downsampling #8110
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Giedrius Statkevičius <[email protected]>
c39432a
to
73ed78c
Compare
Signed-off-by: Giedrius Statkevičius <[email protected]>
73ed78c
to
e4e7fa2
Compare
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.
Thanks. This is epic. Code LGTM. I have 2 questions.
- Since we don't aggregate on min and max, does it work with the existing iterator we use in Querier?
- Do we need to update
ApplyCounterResetIterator
to support native histograms?
return it.Err() | ||
} | ||
|
||
// expandHistogramChunkIterator reads all histograms from the iterator and appends them to buf. |
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.
Comment needs update. expandFloatHistogramChunkIterator
for _, c := range chks { | ||
if prevEnc != c.Chunk.Encoding() { |
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.
If previous encoding is float histogram and current encoding is normal histogram, can we downsample those chunks together since the input is same, float histogram?
Update #6350:
Closes #5907.
Closes #6350.