-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support for GROUPING SETS/CUBE/ROLLUP (#2716)
* WIP * Implement for non-row based accumulators * Non-row aggregations * Map logical plan and add some basic tests * Handle grouping sets in various optimize passes. * Implemented create_cube_expr and create_rollup_expr functions * Cleanup and ignore SingleDistinctToGroupBy when using grouping sets for now * Handle grouping sets in SingleDistinctToGroupBy * Add more tests and burn the boats * Fix(ish) partitioning * Serialization for grouping set exprs * fixed bug with create_cube_expr function * fixed bug with create_cube_expr function * Fixed bug in row-based-aggregation * Added unit tests for test_create_rollup_expr and test_create_cube_expr * Formatting * Tests, linter fixes and docs * Linting * Better encoding which avoids evaluating grouping expressions redundantly * Remove commented code * Apply suggestions from code review Co-authored-by: Andrew Lamb <[email protected]> * PR Comments: Rename PhysicalGroupingSet -> PhysicalGroupBy and clarify doc comment * Disable single_distinct_to_groupby for grouping sets for now and add unit tests for single distinct queries. * PR comments * Remove old comment * Return PhysicalGroupBy from AggregateExec::group_expr Co-authored-by: Ryan Tomczik <[email protected]> Co-authored-by: Andrew Lamb <[email protected]>
- Loading branch information
1 parent
a957778
commit ca5339b
Showing
18 changed files
with
2,044 additions
and
381 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.