Add optional Parquet page index writes - #3829
Open
adonm wants to merge 1 commit into
Open
Conversation
Author
|
Synced with latest main (13 commits, including the pyarrow 24→25 upgrade). No conflicts. Verified end-to-end against a REST catalog: with |
adonm
force-pushed
the
feat/parquet-page-index
branch
from
August 25, 2026 04:59
9b4d96a to
06bf26d
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Related: #3847
Rationale for this change
PyArrow supports page-index writing, but PyIceberg did not expose it through table properties. Readers such as ClickHouse can use these indexes to avoid decoding nonmatching pages for selective queries.
What changes?
Adds an opt-in
write.parquet.page-index-enabledtable property. When enabled, PyIceberg passeswrite_page_index=Trueto PyArrow'sParquetWriter, producing Parquet column and offset indexes for page-level predicate pruning.The default is
false, preserving existing output and file-size behavior.Are these changes tested?
PYTHONPATH=. uv run pytest tests/io/test_pyarrow.py -k parquet_page_index_writer_property -q— passedruff checkon changed Python files — passedgit diff --check— passedAre there any user-facing changes?
Yes. A new opt-in
write.parquet.page-index-enabledtable property (defaultfalse), documented inmkdocs/docs/configuration.md. Tables with the property enabled write Parquet column and offset indexes. Changelog label requested.Tooling note: developed with assistance from DS v4 Pro. I reviewed and verified the changes.