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-40040][SQL] Push local limit to both sides if join condition is empty #37475

Closed
wants to merge 5 commits into from

Conversation

wangyum
Copy link
Member

@wangyum wangyum commented Aug 11, 2022

What changes were proposed in this pull request?

Similar to #31567. This PR enhances LimitPushDown to support push local limit to both sides if it is outer join and join condition is empty. It is safe to push down because without join condition is actually a cross join.

Why are the changes needed?

Improve query performance. For example:
image

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Unit test.

@wangyum
Copy link
Member Author

wangyum commented Aug 22, 2022

cc @cloud-fan

@cloud-fan
Copy link
Contributor

cc @sigmod

@cloud-fan
Copy link
Contributor

The idea is very simple. We should explain the rationale for this optimization in the PR description, instead of giving a screenshot which doesn't provide much value to understand this optimization.

@cloud-fan
Copy link
Contributor

cc @sigmod

@wangyum wangyum closed this in e133823 Aug 31, 2022
@wangyum
Copy link
Member Author

wangyum commented Aug 31, 2022

Merged to master.

@wangyum wangyum deleted the SPARK-40040 branch August 31, 2022 14:27
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.

2 participants