Skip to content
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

[SPARK-45658][SQL] Fix canonicalization of DynamicPruningSubquery to canonicalize build keys relative to build query output #49154

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

ahshahid
Copy link

What changes were proposed in this pull request?

Fixing the canonicalization of build keys in the DynamicPruningSubquery so that build keys are canonicalized relative to build query output.

Why are the changes needed?

I discovered this issue while working on my other PR for pushing broadcast data of BroadcastHashJoin as a pruning filter. The bug appeared as two DynamicPruningSubquery though equivalent, on canonicalization, were not matching. It turned out that the build keys expression were getting canonicalized relative to itself, instead of build query 's output.

Does this PR introduce any user-facing change?

No

How was this patch tested?

Added bug test.

Was this patch authored or co-authored using generative AI tooling?

No

…alize build keys relative to build query output
@github-actions github-actions bot added the SQL label Dec 11, 2024
ashahid added 2 commits December 11, 2024 19:17
…alize build keys relative to build query output. fix compilation error after merge
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