Skip to content

[Analyzer migration] Enable optimize_duplicate_order_by_and_distinct (ORDER BY part)#43229

Closed
devcrafter wants to merge 13 commits intomasterfrom
igor/optimize_duplicate_order_by
Closed

[Analyzer migration] Enable optimize_duplicate_order_by_and_distinct (ORDER BY part)#43229
devcrafter wants to merge 13 commits intomasterfrom
igor/optimize_duplicate_order_by

Conversation

@devcrafter
Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

Implements part of optimize_duplicate_order_by_and_distinct optimization, - remove unnecessary ORDER BY in subqueries if possible. Part of #42648

@robot-clickhouse robot-clickhouse added the pr-not-for-changelog This PR should not be mentioned in the changelog label Nov 14, 2022
@kitaisreal kitaisreal self-assigned this Nov 14, 2022
+ remove debug code
+ adjust comments
@novikd novikd self-assigned this Nov 15, 2022
@devcrafter
Copy link
Copy Markdown
Member Author

devcrafter commented Nov 15, 2022

@kitaisreal
Copy link
Copy Markdown
Contributor

@devcrafter, @novikd we need to discuss, on which stage we want to substitute subqueries instead views. In most DBMS this is done during rewriting stage (can be done in QueryTreePass), althought we need to save information about Storage for RBAC to work, probably we would have to modify query node, union node.

@devcrafter
Copy link
Copy Markdown
Member Author

Closed in favor #45420

@devcrafter devcrafter closed this Feb 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-not-for-changelog This PR should not be mentioned in the changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants