Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
AggregateJoinTransposeRule currently only fires if the Aggregate has no aggregate functions. We need to lift that limitation.
Aggregate functions should be split, e.g. COUNT becomes SUM of COUNT. Some aggregate functions cannot be split, e.g. distinct-count.
Add a new interface to SqlAggFunction to allow it to declare the split policy.
Attachments
Issue Links
- depends upon
-
CALCITE-794 Detect cycles when computing statistics
- Closed
- is related to
-
CALCITE-366 Support Aggregate push down in bushy joins
- Closed
- relates to
-
CALCITE-896 Remove Aggregate if grouping columns are unique and all functions are splittable
- Closed
-
DRILL-3840 Add support for in UDF two-phased aggregate merging for UDAFs
- Open