[AURON #2163] Support native Iceberg scans with residual filters via scan pruning and post-scan native filter#2164
Merged
slfan1989 merged 1 commit intoapache:masterfrom Apr 10, 2026
Conversation
22c1061 to
8116033
Compare
e19e1a9 to
4fe640b
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
This PR improves native execution coverage for Iceberg table reads by allowing native Iceberg scans to proceed even when Iceberg reports residual filters, and by pushing a supported subset of Iceberg filter expressions into native scan-pruning predicates while leaving unsupported parts to be evaluated via the existing native post-scan filter path.
Changes:
- Extend
IcebergScanPlanto carrypruningPredicatesderived from Iceberg scan filter expressions. - Pass pruning predicates into
NativeIcebergTableScanExecso native Parquet/ORC scans can apply scan pruning. - Add/adjust Iceberg integration tests to validate pruning predicate population and partial pushdown behavior.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| thirdparty/auron-iceberg/src/test/scala/org/apache/auron/iceberg/AuronIcebergIntegrationSuite.scala | Adds integration coverage for pruning predicates and partial pushdown scenarios. |
| thirdparty/auron-iceberg/src/main/scala/org/apache/spark/sql/execution/auron/plan/NativeIcebergTableScanExec.scala | Threads pruningPredicates into the native scan protobuf nodes. |
| thirdparty/auron-iceberg/src/main/scala/org/apache/spark/sql/auron/iceberg/IcebergScanSupport.scala | Removes residual-filter fallback and adds filter-expression extraction + conversion into native scan pruning predicates. |
| spark-extension/src/main/scala/org/apache/spark/sql/auron/AuronConverters.scala | Ensures rename-column handling treats NativeIcebergTableScan as a scan requiring renames. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
...rty/auron-iceberg/src/main/scala/org/apache/spark/sql/auron/iceberg/IcebergScanSupport.scala
Show resolved
Hide resolved
...rty/auron-iceberg/src/test/scala/org/apache/auron/iceberg/AuronIcebergIntegrationSuite.scala
Outdated
Show resolved
Hide resolved
…s via scan pruning and post-scan native filter
9ec5a13 to
eae6bfe
Compare
slfan1989
approved these changes
Apr 9, 2026
yew1eb
approved these changes
Apr 9, 2026
Contributor
|
@weimingdiit Thanks for the contribution! @yew1eb Thanks for the review! |
Contributor
Author
|
@slfan1989 @yew1eb Thanks for your review and merge |
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?
Closes #2163
Rationale for this change
The previous behavior was too conservative for Iceberg scans with residual filters. Even when the scan could still be executed natively and the remaining filter logic could be handled above the scan, the planner would fall back entirely.
This PR improves native coverage for Iceberg reads by:
This is an incremental improvement to Iceberg native execution, not full Iceberg feature coverage.
What changes are included in this PR?
This PR:
alwaysTrueresidual filtersIcebergScanPlanto carrypruningPredicatesNativeIcebergTableScanExecNativeFilterpathIN-based pruningSupported predicate scope in this PR
The scan-pruning conversion added here supports a limited subset of Iceberg expressions, including:
ANDORNOTIS NULLIS NOT NULLIS NANNOT NAN=,!=,<,<=,>,>=INNOT INThe current implementation intentionally avoids pushing some types through scan pruning, including:
StringTypeBinaryTypeDecimalTypeUnsupported predicates are not pushed into scan pruning and are instead left for post-scan native filtering.
How was this patch tested?
Integration coverage was added in
AuronIcebergIntegrationSuite