Skip to content

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

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

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

Conversation

@ranma42

@ranma42 ranma42 commented Aug 7, 2024

Copy link
Copy Markdown
Contributor

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

roji commented Aug 8, 2024

Copy link
Copy Markdown
Member

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

@ranma42

ranma42 commented Aug 8, 2024

Copy link
Copy Markdown
Contributor Author

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

@roji roji left a comment

Copy link
Copy Markdown
Member

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