-
Notifications
You must be signed in to change notification settings - Fork 804
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
Add option to disable writing of Parquet offset index #6797
Conversation
parquet/src/file/metadata/mod.rs
Outdated
} | ||
} | ||
|
||
/// Disable writing of offset indexes. |
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.
What is the motivation for building this into the builder, as opposed to simply wrapping the OffsetIndexBuilder in Option?
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.
Analogy with column index builder? Lack of imagination? 🤷 Changed.
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.
Should column_index_builder
get similar treatment?
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.
Possibly, although probably not worth making a breaking change over if it is public
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.
I never realized that the builders were public. Guess it's not worth the refactor to make column_index_builder
an Option
too.
Co-authored-by: Raphael Taylor-Davies <[email protected]>
Which issue does this PR close?
Closes #6778.
Rationale for this change
Allow disabling offset indexes.
What changes are included in this PR?
Adds a global
offset_index_disabled
writer property. This was made global rather than per-column because the index is not very useful if not defined for all columns.Are there any user-facing changes?
Yes, adds a new property.