fix(reader): gracefully handle missing Parquet column index in row se…#2464
Open
jdwil wants to merge 1 commit into
Open
fix(reader): gracefully handle missing Parquet column index in row se…#2464jdwil wants to merge 1 commit into
jdwil wants to merge 1 commit into
Conversation
…lection When row_selection_enabled is true and the Parquet file lacks column or offset index metadata (common with older/migrated files), the reader now skips page-level row pruning instead of returning an error. Row-group filtering via statistics and the ArrowPredicate row filter still function normally; only page-index-based RowSelection is skipped. Closes apache#2452
3cf00d7 to
f1a268a
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.
Gracefully handle Parquet files missing column/offset indexes by skipping page-level row selection and falling back to existing row-group filtering plus Arrow row filtering. This preserves predicate correctness for older or migrated Parquet files that lack page index metadata.
Added integration coverage for Parquet files without column/offset indexes. The test verifies that scans no longer fail when page indexes are absent, page-level row selection is skipped gracefully, and predicate filtering (id < 3) still produces the correct filtered result set ([1, 2]) via the existing row-group + Arrow filtering path.
Closes #2452