lyne7-sc opened a new pull request, #2379:
URL: https://github.com/apache/auron/pull/2379
# Which issue does this PR close?
Closes #2378
# Rationale for this change
Spark's `BatchScanExec` can carry runtime filters for dynamic partition
pruning. These filters are resolved after planning and can reduce the input
partitions/files that a scan should read.
Auron's native Iceberg scan should preserve and apply these runtime filters
so dynamic partition pruning can reduce Iceberg scan work on the native path.
# What changes are included in this PR?
- Pass `BatchScanExec.runtimeFilters` into `NativeIcebergTableScanExec`.
- Re-plan the Iceberg scan with runtime filters before native execution.
- Cache runtime-filtered Iceberg scan plans separately from static scan
plans.
- Add a shim method to copy `BatchScanExec` with runtime filters across
supported Spark versions.
- Add Iceberg integration tests for:
- Parquet native scan with dynamic partition pruning;
- ORC native scan with dynamic partition pruning;
- dynamic pruning to empty partitions;
- changelog scan with dynamic partition pruning.
# Are there any user-facing changes?
Queries using native Iceberg scan can read fewer partitions/files when Spark
dynamic partition pruning applies. No API change.
# How was this patch tested?
Added `AuronIcebergIntegrationSuite` cases.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]