- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 741
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
Fix max bucket limit in histogram #1703
Conversation
The max bucket limit in histogram was broken, since some code introduced temporary filtering of buckets, which then resulted into an incorrect increment on the bucket count. The provided solution covers more scenarios, but there are still some scenarios unhandled (See #1702).
9c46587
to
bad4d34
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.
...
.iter() | ||
.take_while(|bucket| bucket.doc_count <= self.min_doc_count) | ||
.count(); | ||
let cut_off_buckets_end = self |
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.
nitpick... The opposite of front is back.
let cut_off_buckets_end = self | |
let cut_off_buckets_back = self |
080fb26
to
a90810c
Compare
Co-authored-by: Paul Masurel <paul@quickwit.io>
a90810c
to
644a8b2
Compare
Codecov Report
@@ Coverage Diff @@
## main #1703 +/- ##
==========================================
+ Coverage 94.06% 94.11% +0.04%
==========================================
Files 259 261 +2
Lines 49637 50009 +372
==========================================
+ Hits 46692 47066 +374
+ Misses 2945 2943 -2
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
* Fix max bucket limit in histogram The max bucket limit in histogram was broken, since some code introduced temporary filtering of buckets, which then resulted into an incorrect increment on the bucket count. The provided solution covers more scenarios, but there are still some scenarios unhandled (See quickwit-oss#1702). * Apply suggestions from code review Co-authored-by: Paul Masurel <paul@quickwit.io> Co-authored-by: Paul Masurel <paul@quickwit.io>
The max bucket limit in histogram was broken, since some code introduced temporary filtering of buckets, which then resulted in an incorrect increment on the bucket count.
The provided solution handles more use cases correctly, but there are still some scenarios unhandled (See #1702).
quickwit-oss/quickwit#2503