-
Notifications
You must be signed in to change notification settings - Fork 958
Stop writing statistics to Parquet page headers by default, add option to enable #7594
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
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
Setting this to draft for now since it depends on #7555. |
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.
Thank you @etseidl -- I went over this PR carefully and I think it looks really nice.
I couldn't help myself so I also merged up from main to resolve a conflict, added an explicit test for writing page statistics, and tweaked some docs.
I think this is going to make a non trivial difference for people who store data using parquet-rs and enable page level statistics. THANK YOU
I think we should wait for the next major release before merging this PR |
🤣 Thanks @alamb! Changes look great. |
Which issue does this PR close?
Rationale for this change
Reduces metadata bloat by not writing redundant statistics to each Parquet page header.
What changes are included in this PR?
Changes the meaning of
EnabledStatistics::Page
. Currently this level means statistics will be written to the column chunk, page header, and column index. With this PRPage
now means writing to the column chunk and column index. Writing to the page header can be enabled using an addedwrite_page_header_statistics
writer option.Also adds some command line switches to the
parquet-rewrite
tool.Are there any user-facing changes?
No breaking API changes, but an added option and behavior change.
Specifically, statistics are no longer written to data Page headers by default. If you want them (not common) you will have to explictly enable doing so