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

Add distinct if needed to the right side of a semijoin #24510

Open
kaikalur opened this issue Feb 6, 2025 · 0 comments
Open

Add distinct if needed to the right side of a semijoin #24510

kaikalur opened this issue Feb 6, 2025 · 0 comments

Comments

@kaikalur
Copy link
Contributor

kaikalur commented Feb 6, 2025

Looks like SetBuilder works best when you give it distinct elements. So when we see something like:

select ... from t1
where id in (select id from t2)

we should distinct id in t2

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