Repository navigation
Spark: drop dynamic pruning filters that nest pruning filters - #11603
Open
robert3005 wants to merge 1 commit into
Open
robert3005 wants to merge 1 commit into
robert3005 wants to merge 1 commit into
Conversation
Spark adds one pruning subquery per join that can prune a scan, holding the plan of the join's other side. When a common table expression joins with itself, each subquery copies the subqueries of that side, and the plan grows by a factor of three per level of joins. Add the NestedDynamicPruning optimizer rule, which drops each pruning filter whose filtering plan holds pruning filters of its own, and VortexSparkSessionExtensions, which installs it. The rule is public so that a different Spark integration that reads Vortex files can install it in its own session extensions. Signed-off-by: Robert Kruszewski <github@robertk.io>
This branch was successfully deployed
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.
Spark adds one dynamic pruning subquery per join that can prune a scan, and the subquery holds the plan of the other side of the join. When a common table expression joins with itself, each subquery copies the subqueries of that side, so the plan grows by a factor of three per level of joins. The new
NestedDynamicPruningrule drops each pruning filter whose filtering plan holds pruning filters of its own, and the newVortexSparkSessionExtensionsinstalls it. A pruning filter only skips rows that the join drops, so the result does not change.This is the rule from #11096, taken out so that it can merge and release first. The rule is public so that the Iceberg integration can install it in its own session extensions after the release.
🤖 Generated with Claude Code
https://claude.ai/code/session_018SWbEtEQLKKebxSCarAZrU