Repository navigation
fix: keep rows from imported Iceberg files by not pushing range and IN residuals on name-mapped tables #7233
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
Open
andygrove
wants to merge
25
commits into
apache:main
Choose a base branch
from
andygrove:fix-7138-name-mapping
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,017
−99
Open
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
f61c643
fix: keep Iceberg residual pushdown within Spark semantics
rich7420 cda4add
fix: push negated equality guarded by a null check on the same column
rich7420 05c5132
test: assert which negated equalities stay pushed to native Iceberg s…
rich7420 7f18a37
test: require Iceberg 1.9 for expired schema cleanup
rich7420 31bbcfc
Merge branch 'main' into fix/7136-iceberg-residual-semantics
rich7420 89b2afd
test: focus Iceberg residual correctness regressions
rich7420 e4a884d
Merge branch 'main' into fix/7136-iceberg-residual-semantics
rich7420 794df9a
Merge upstream/main into fix/7136-iceberg-residual-semantics
rich7420 4ea8723
Merge latest upstream/main into fix/7136-iceberg-residual-semantics
rich7420 e1afd07
fix: treat timestamp columns as promoted when Iceberg schema history …
rich7420 2f6f4a1
fix: do not push Iceberg range and IN residuals on tables with a name…
andygrove af2df23
docs: list equality under NOT among the promoted-column exclusions
rich7420 0936d46
Merge upstream/main into fix/7136-iceberg-residual-semantics
rich7420 a4c6f91
docs: note that the pinned iceberg-rust includes #3502
rich7420 fddc5bf
Merge remote-tracking branch 'apache/main' into HEAD
andygrove 4403f9c
Merge upstream/main into fix/7136-iceberg-residual-semantics
rich7420 d5bf49e
test: count pushed Iceberg residuals across partition pools
rich7420 5d09d65
test: count Iceberg residuals across the per-partition pools
andygrove b4a5d60
test: share the snapshotTable import helper and cover decimal and tim…
andygrove 610bd49
perf: collect NOT_NULL columns once per AND chain in Iceberg residuals
rich7420 aeeb1b0
Merge branch 'main' into fix/7136-iceberg-residual-semantics
andygrove 5e26cd8
Merge branch 'pr-7156' into fix-7138-name-mapping
andygrove 6f7677c
docs: name the iceberg-rust commits and the Arrow 60 bump that let th…
andygrove 28006e6
fix: fall back to Spark for equality deletes keyed on a column that m…
andygrove 78f78f8
perf: find promoted equality-delete keys by field id in one pass over…
andygrove File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
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.
Equality deletes go through the same comparison, and neither guard covers them. At the pin, iceberg-rust turns each delete row into
col IS NULL OR col != v, binds it to the task schema (crates/iceberg/src/arrow/caching_delete_file_loader.rs:617-629,delete_filter.rs:231), and ANDs it into the same row filter (reader/pipeline.rs:478-544). Therenot_eqcallstry_cast_literal(predicate_visitor.rs:520-533). Take an equality delete written after anINTtoBIGINTpromotion with a value abovei32::MAX. When it applies to an olderINTfile,vbecomes NULL and every non-NULL row of that file is dropped. ADOUBLEdelete value such as0.1rounds to theFLOAT0.1and removes a row that Spark keeps.CometScanRulechecks equality-delete keys only for nesting and type (CometScanRule.scala:1214-1257). Could this bullet list equality deletes keyed on such a column, or couldCometScanRulefall back when a key is inpromotedColumns? #7712 also lists this as not covered. I found this by reading the code and did not run it.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.
Thanks, I confirmed this against the code and chose the fallback.
CometScanRulenow declines the native scan when an equality-delete key is in the promoted-column set. That set covers the current, scan and historic schemas with the name-mapping widening, so a dropped key is covered too. The new testequality delete keyed on a promoted column falls back to SparkpromotesINTtoBIGINTand commits a delete of3000000000. It matches Spark and fails with the fallback disabled. The fallback is listed under "Current limitations" iniceberg.md(28006e6).