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

Optimizer: Eliminate Cross Join Rule #3095

Closed
universalmind303 opened this issue Oct 21, 2024 · 0 comments · Fixed by #3110
Closed

Optimizer: Eliminate Cross Join Rule #3095

universalmind303 opened this issue Oct 21, 2024 · 0 comments · Fixed by #3110
Labels

Comments

@universalmind303
Copy link
Contributor

cross joins followed by filter can often be replaced as inner joins.
These style of queries were very popular, and are found among most tpc queries.

select ... from a, b where a.x = b.y and b.xx = 100;

this can usually be rewritten as

select ...
from a
inner join b on a.x = b.y 
where b.xx = 100
@universalmind303 universalmind303 converted this from a draft issue Oct 21, 2024
@linear linear bot added the sql label Oct 24, 2024
@universalmind303 universalmind303 linked a pull request Oct 24, 2024 that will close this issue
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant