planner: introduce the logical Expand for rollup syntax #44214
Labels
severity/minor
sig/planner
SIG: Planner
type/feature-request
Categorizes issue or PR as related to a new feature.
Feature Request
Is your feature request related to a problem? Please describe:
Rollup syntax means the underlying data should always be replicated for N+1 times (N is equal to the number of group by items list size), Otherwise, rewriting them as multi-statements concat with the UNION clause is necessary which is not planned from our side.
So from the AST transformation, Logical Expand is necessary; besides, we also need some logical meta generated by Expand operator to do the groupingFunc rewrite, and this step is also should be done in the Logical phase.
Describe the feature you'd like:
introduce the logical Expand for rollup syntax
Describe alternatives you've considered:
Union statements rewriting (NOT considered now)
Teachability, Documentation, Adoption, Migration Strategy:
None
The text was updated successfully, but these errors were encountered: