-
Type:
Bug
-
Status: Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.20.0
-
Component/s: None
-
Labels:None
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.
- relates to
-
CALCITE-3145 RelBuilder.aggregate throws IndexOutOfBoundsException if groupKey is non-empty and there are duplicate aggregate functions
-
- Closed
-
- links to