Skip to content

Spark: Push supported filters from compound AND predicates that contain unsupported expressions#16531

Open
hemanthboyina wants to merge 1 commit into
apache:mainfrom
hemanthboyina:compound_predicate
Open

Spark: Push supported filters from compound AND predicates that contain unsupported expressions#16531
hemanthboyina wants to merge 1 commit into
apache:mainfrom
hemanthboyina:compound_predicate

Conversation

@hemanthboyina
Copy link
Copy Markdown
Contributor

When a compound AND predicate contains both supported and unsupported expressions, the entire predicate is currently dropped from Iceberg's filter list. This means no file pruning occurs even when convertible conditions are present.

This change decomposes such predicates into individual conjuncts in BaseSparkScanBuilder.pushPredicates() and pushes the convertible ones for file pruning. The original predicate remains in post-scan filters to ensure Spark re-evaluates the full condition for correctness.

@github-actions github-actions Bot added the spark label May 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant