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

chore: fast path for hash join if build side is empty #11835

Merged
merged 2 commits into from
Jun 26, 2023

Conversation

xudong963
Copy link
Member

@xudong963 xudong963 commented Jun 21, 2023

I hereby agree to the terms of the CLA available at: https://databend.rs/dev/policies/cla/

Summary

If build side is empty, inner/cross/right join can fast return.

t1 is empty.
Before

mysql> select * from (select * from numbers(10000000000)) n join t1 on n.number = t1.a;
Empty set (6.48 sec)

Now

mysql> select * from (select * from numbers(10000000000)) n join t1 on n.number = t1.a;
Empty set (0.02 sec)

Closes #issue

@vercel
Copy link

vercel bot commented Jun 21, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
databend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 26, 2023 2:46am

@xudong963 xudong963 marked this pull request as draft June 21, 2023 11:56
@mergify mergify bot added the pr-chore this PR only has small changes that no need to record, like coding styles. label Jun 21, 2023
@xudong963 xudong963 force-pushed the fast_join branch 9 times, most recently from 148f07a to abb6c63 Compare June 25, 2023 09:47
@xudong963 xudong963 marked this pull request as ready for review June 25, 2023 18:23
@xudong963 xudong963 requested review from Dousir9 and zhang2014 June 25, 2023 18:23
@xudong963 xudong963 merged commit 16b8443 into databendlabs:main Jun 26, 2023
@xudong963 xudong963 deleted the fast_join branch June 26, 2023 06:06
andylokandy pushed a commit to andylokandy/databend that referenced this pull request Nov 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-chore this PR only has small changes that no need to record, like coding styles.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants