Skip to content

Revert "Revert "Remove redundant sorting""#45420

Merged
devcrafter merged 7 commits intomasterfrom
revert-45414-revert-43905-igor/remove_redundant_order_by
Jan 24, 2023
Merged

Revert "Revert "Remove redundant sorting""#45420
devcrafter merged 7 commits intomasterfrom
revert-45414-revert-43905-igor/remove_redundant_order_by

Conversation

@devcrafter
Copy link
Copy Markdown
Member

@devcrafter devcrafter commented Jan 18, 2023

Changelog category (leave one):

  • Improvement

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):

Remove redundant sorting, for example, sorting related ORDER BY clauses in subqueries. Implemented on top of query plan. It does similar optimization as optimize_duplicate_order_by_and_distinct regarding ORDER BY clauses, but more generic, since it's applied to any redundant sorting steps (not only caused by ORDER BY clause) and applied to subqueries of any depth. Related to #42648

@devcrafter devcrafter marked this pull request as draft January 18, 2023 19:17
@devcrafter devcrafter added the do not test disable testing on pull request label Jan 18, 2023
@robot-ch-test-poll4 robot-ch-test-poll4 added the pr-not-for-changelog This PR should not be mentioned in the changelog label Jan 18, 2023
@devcrafter devcrafter removed the do not test disable testing on pull request label Jan 19, 2023
@devcrafter devcrafter marked this pull request as ready for review January 19, 2023 12:07
@KochetovNicolai KochetovNicolai self-assigned this Jan 19, 2023
@robot-ch-test-poll4 robot-ch-test-poll4 added pr-improvement Pull request with some product improvements and removed pr-not-for-changelog This PR should not be mentioned in the changelog labels Jan 19, 2023
@devcrafter
Copy link
Copy Markdown
Member Author

After approve, I'll disable query_plan_remove_redundant_sorting setting and merge it to avoid breaking sort.xml performance test in other PRs. sort.xml disable the new optimization because it removes sorting from queries there.
Will enable it in follow-up PR.

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

Labels

pr-improvement Pull request with some product improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants