feat(table): equality-delete read support in merge-on-read scans#19
Open
abnobdoss wants to merge 5 commits into
Open
feat(table): equality-delete read support in merge-on-read scans#19abnobdoss wants to merge 5 commits into
abnobdoss wants to merge 5 commits into
Conversation
added 5 commits
June 23, 2026 09:13
Implements the READ path for equality deletes (DataFileContent.EQUALITY_DELETES) in PyArrow merge-on-read scans, building on the DeleteFileIndex matching/pruning from PR apache#3285. - DeleteFileIndex now indexes equality deletes at (seq-1) so they apply only to data files with a strictly smaller data sequence number, with null-count and bounds-based pruning ported from PR apache#3285. - plan_files no longer raises on equality deletes; routes them into the index. - _read_all_delete_files splits positional vs equality delete files; equality delete files are read into Arrow tables keyed by file path. - _task_to_record_batches applies equality deletes after positional deletes and the row filter, anti-joining the data batch on the equality_ids columns. The common no-null case uses a fast Arrow left-anti join; delete rows with NULL keys use a null-aware pass implementing Iceberg IS NOT DISTINCT FROM semantics. - Equality-id key columns are added to the projected field ids so they are read even when not in the user projection. Tests: 4 end-to-end ArrowScan read tests (single-column, multi-column AND-match, no-match, null-key) plus DeleteFileIndex seq-scoping/pruning unit tests.
Address adversarial review: make test_equality_delete_no_match load-bearing (include a matching key so it fails if deletes are ignored) and add test_equality_delete_multi_batch verifying eq-delete application across record-batch boundaries.
…chema evolution and type promotion, support REST plan path
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.
No description provided.