Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
In RelBuilder, eliminate duplicate aggregate calls. For example, if you call RelBuilder.aggregate with sum($1), sum($2), count($1), sum($1) then it would create an Aggregate with 3 aggregate calls (because sum($1) occurs twice), then add a Project [$1, $2, $3, $1]. The Project is necessary so that you get the number of output fields that you are expecting.
Attachments
Issue Links
- relates to
-
CALCITE-3145 RelBuilder.aggregate throws IndexOutOfBoundsException if groupKey is non-empty and there are duplicate aggregate functions
- Closed
- links to