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-51256][SQL] Increase parallelism if joining with small bucket table #50004

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

Conversation

wangyum
Copy link
Member

@wangyum wangyum commented Feb 19, 2025

What changes were proposed in this pull request?

This pull request enhances the logic in EnsureRequirements to improve the performance of query execution.

Changes:
Split candidateSpecs into candidateSpecsWithShuffle and candidateSpecsWithoutShuffle.
Calculate the maximum number of partitions in candidateSpecsWithShuffle.
Refine the selection criteria for finalCandidateSpecs to consider the maximum number of partitions and the configured maximum bucket ratio.

Why are the changes needed?

Improve query performance.
Before this PR:

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Unit test.

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

No.

Increase parallelism if joining with small bucket table
@wangyum wangyum marked this pull request as draft February 19, 2025 09:18
@github-actions github-actions bot added the SQL label Feb 19, 2025
@wangyum wangyum marked this pull request as ready for review February 19, 2025 09:55
@wangyum
Copy link
Member Author

wangyum commented Feb 19, 2025

cc @sunchao @cloud-fan

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