feat(parquet): provide direct access to dictionary pages#10420
Open
DarkWanderer wants to merge 1 commit into
Open
feat(parquet): provide direct access to dictionary pages#10420DarkWanderer wants to merge 1 commit into
DarkWanderer wants to merge 1 commit into
Conversation
Add sync and async APIs for decoding a BYTE_ARRAY column chunk dictionary page without materializing the full column, enabling exact row-group membership pruning for fully dictionary-encoded chunks. Reuse the regular page reader header, size validation, and decryption path so standalone dictionary decoding handles encrypted, truncated, and malformed pages safely. See apache#9010. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
DarkWanderer
force-pushed
the
get-dictionary
branch
from
July 23, 2026 22:19
7c65729 to
8145bb8
Compare
DarkWanderer
marked this pull request as ready for review
July 24, 2026 08:22
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.
Which issue does this PR close?
Rationale for this change
This change provides low-level API necessary for enabling dictionary-based pruning in DataFusion: apache/datafusion#23851
What changes are included in this PR?
parquet::file::metadata::dictionary::decode_dictionary_page: decodesa BYTE_ARRAY dictionary page (Thrift header parse, decompress, PLAIN
decode) into a
Utf8/BinaryArrow array.ParquetMetaDataReader::read_column_dictionary(sync) andread_column_dictionary_async(async) to fetch and decode a given row group/column's dictionary page from aParquetMetaData, returningOk(None)if the chunk has no dictionary page.ParquetRecordBatchStreamBuilder::get_row_group_column_dictionaryconvenience method mirroringget_row_group_column_bloom_filter.Are these changes tested?
Yes: a round-trip unit test for a dictionary-encoded string column, a
non-BYTE_ARRAY rejection test, and sync + async reader tests that
decode a real dictionary page written through
ArrowWriter.Are there any user-facing changes?
Yes, three new public APIs (see above). No changes to
existing API.