-
Notifications
You must be signed in to change notification settings - Fork 1.1k
parquet: adjust bloom filter (sbbf) sizing for better fpp and cache efficiency #9206
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
base: main
Are you sure you want to change the base?
Conversation
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.
Pull request overview
This PR adjusts the SBBF (Split Block Bloom Filter) sizing calculation to improve cache efficiency and better conform to the Parquet format specification. The implementation introduces a compensation table based on the referenced academic paper to account for overhead from the Poisson distribution of elements across blocks.
Changes:
- Replaced simple theoretical calculation with a compensation table-based approach
- Added linear interpolation helper function for table lookups
- Updated test expectations to reflect new sizing calculations
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
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.
Pull request overview
Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
cf5b343 to
403c905
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.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
eea969c to
14ac618
Compare
14ac618 to
3b0353b
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.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <[email protected]>
Which issue does this PR close?
adjust sbbf sizing for better cache efficiency, to make it more conformant with the spec
Rationale for this change
original rust implementation actually only used the vanilla math for calculating the ideal size, not adjusting (by compensating) size.
this fix will introduce the adjusted value per the original paper.
What changes are included in this PR?
Are these changes tested?
Are there any user-facing changes?