-
Notifications
You must be signed in to change notification settings - Fork 24.2k
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
Merge histograms without losing precision #93704
Merged
salvatore-campagna
merged 19 commits into
elastic:main
from
salvatore-campagna:fix/92822-hdrpercentiles-precision-default
Feb 13, 2023
Merged
Changes from 5 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
98ff032
fix: use max value 3 for numberOfSignificantValueDigits
salvatore-campagna fb6ac0d
Update docs/changelog/93704.yaml
salvatore-campagna f49036f
fix: use the correct number of significant values digits
salvatore-campagna 39b1c42
fix: undo first commit
salvatore-campagna 1f5fc39
fix: update yaml
salvatore-campagna 00fa30b
fix: always merge histograms using the higher precision
salvatore-campagna 8721bc9
fix: use just 0 digits for empty histograms to save memory
salvatore-campagna 18b79a6
fix: do a little bit less work while merging histograms
salvatore-campagna da68312
docs: include some javadoc for the merge method
salvatore-campagna 7c2f22b
yaml: update bug resolution description
salvatore-campagna 4fc598a
fix: set auto resize
salvatore-campagna 6683480
fix: set autorize before merging
salvatore-campagna c1be8c2
fix: use 3 digits minimum for empty histograms bwc
salvatore-campagna 44e739e
fix: try using zero digits empty histograms
salvatore-campagna 9f8907f
fix: restore test
salvatore-campagna 7eac3f8
fix: do not use recursive call
salvatore-campagna 5b13951
fix: prevent serialization of empty tdigest objects
salvatore-campagna 30126e7
fix: undo changes to TDigest percentiles
salvatore-campagna c57b68a
fix: undo changes to TDigest percentiles
salvatore-campagna File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
pr: 93704 | ||
summary: Use the corredt value of `numberOfSignificantValueDigits` on empty aggregations | ||
area: Aggregations | ||
type: bug | ||
issues: | ||
- 92822 |
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
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
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.
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.
Note that in
TDigestPercentilesAggregator#buildEmptyAggregation
we do something similarThere 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.
Creating
DoubleHistogram
with a highnumberOfSignificantValueDigits
consumes a lot of memory. Can we avoid doing this here? Also serialising it would be non trivial.Can we maybe create the right
DoubleHistogram
instance inAbstractInternalHDRPercentiles#reduce(...)
method? Right now it always uses aEMPTY_HISTOGRAM
in case of an empty bucket. Maybe we create another instances ifnumberOfSignificantValueDigits
!= 3?