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

Remove ORDER BY applied to singleton queries #35214

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

ranma42
Copy link
Contributor

@ranma42 ranma42 commented Nov 26, 2024

Fixes #34831.

@ranma42
Copy link
Contributor Author

ranma42 commented Nov 26, 2024

I started working on this again after #34097 was merged :)
This is not yet ready for merging (missing new tests).

@ranma42 ranma42 force-pushed the optimize-sort-singleton branch 2 times, most recently from eaaaa40 to a588de8 Compare December 23, 2024 22:33
@ranma42
Copy link
Contributor Author

ranma42 commented Dec 24, 2024

I added a test and based this on top of #35384, so that it actually performs the desired simplifications (as visible in Distinct_take_without_orderby).

@ranma42 ranma42 force-pushed the optimize-sort-singleton branch from a588de8 to a3c23ca Compare December 24, 2024 12:56
@ranma42 ranma42 force-pushed the optimize-sort-singleton branch from a3c23ca to 50dc57b Compare December 24, 2024 16:05
@ranma42 ranma42 marked this pull request as ready for review December 24, 2024 19:12
@ranma42 ranma42 requested a review from a team as a code owner December 24, 2024 19:12
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 ORDER BY applied to singleton queries
2 participants