Skip to content

Support optimize_group_by_function_keys on top of QueryTree#43261

Merged
kitaisreal merged 10 commits intomasterfrom
group-by-function-elimination
Jan 18, 2023
Merged

Support optimize_group_by_function_keys on top of QueryTree#43261
kitaisreal merged 10 commits intomasterfrom
group-by-function-elimination

Conversation

@novikd
Copy link
Copy Markdown
Member

@novikd novikd commented Nov 15, 2022

Changelog category (leave one):

  • Improvement

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

Support optimize_group_by_function_keys in the new analyzer architecture. Also, add support for optimizing GROUPING SETS keys. Part of #42648.

Requires to resolve #43257 before merging.

@robot-ch-test-poll robot-ch-test-poll added the pr-improvement Pull request with some product improvements label Nov 15, 2022
@novikd novikd marked this pull request as ready for review January 12, 2023 00:31
@kitaisreal kitaisreal self-assigned this Jan 12, 2023
@@ -0,0 +1,17 @@
EXPLAIN QUERY TREE run_passes=1
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Need to rename test into 02481_analyzer_optimize_grouping_sets_keys.sql, that way it is easy to run all analyzer tests.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

For this test we want to test GROUP BY, we do not need to add HAVING, ORDER BY, complex projection. Otherwise correctness of tests are hard to verify.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I renamed the test, but see no point in editing it because I just copied queries from tests with the old analyzer a modified them a little bit.

@novikd novikd requested a review from kitaisreal January 16, 2023 17:54
@kitaisreal
Copy link
Copy Markdown
Contributor

@novikd need to fix fast test failures

@kitaisreal kitaisreal merged commit cacaa23 into master Jan 18, 2023
@kitaisreal kitaisreal deleted the group-by-function-elimination branch January 18, 2023 09:55
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.

Aggregation result is incorrect using new analyzer

3 participants