Skip to content

Optimize away DISTINCT inside IN/EXISTS/set operations#34381

Merged
roji merged 4 commits intodotnet:mainfrom
ranma42:exists-no-distinct-31016
Aug 9, 2024
Merged

Optimize away DISTINCT inside IN/EXISTS/set operations#34381
roji merged 4 commits intodotnet:mainfrom
ranma42:exists-no-distinct-31016

Conversation

@ranma42
Copy link
Copy Markdown
Contributor

@ranma42 ranma42 commented Aug 7, 2024

This PR optimizes away DISTINCT when immediately inside IN/EXISTS/set operations.

Fixes #31016.

@ranma42 ranma42 marked this pull request as draft August 7, 2024 22:52
@roji
Copy link
Copy Markdown
Member

roji commented Aug 8, 2024

This looks good to me @ranma42 - any issues or further work that prevents merging (remember the feature work deadline is approaching very fast)

@ranma42
Copy link
Copy Markdown
Contributor Author

ranma42 commented Aug 8, 2024

I just need to fix the cosmos tests 😇 (well, I will probably mark them as expected failures, just like the similar cases 😈 )
will do that ASAP

@ranma42 ranma42 force-pushed the exists-no-distinct-31016 branch from 70fc0d5 to 5b62da3 Compare August 8, 2024 17:46
@ranma42 ranma42 marked this pull request as ready for review August 8, 2024 17:48
@ranma42 ranma42 force-pushed the exists-no-distinct-31016 branch from 5b62da3 to 4c7d9d5 Compare August 8, 2024 18:43
Copy link
Copy Markdown
Member

@roji roji left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @ranma42!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove DISTINCT inside IN/EXISTS/set operations

2 participants