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

Optimize coalesce of join keys #23603

Open
kaikalur opened this issue Sep 6, 2024 · 0 comments
Open

Optimize coalesce of join keys #23603

kaikalur opened this issue Sep 6, 2024 · 0 comments

Comments

@kaikalur
Copy link
Contributor

kaikalur commented Sep 6, 2024

We have seen queries like:

COALESCE(l.id, r.id) FROM l INNER/LEFT JOIN r ON l.id=r.id

Here for both inner ad left joins we can simplify it to l.id since it's a join key. Similarly for the converse for right join. We should apply this rule before join reordering

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🆕 Unprioritized
Development

No branches or pull requests

1 participant