Julian Hyde created CALCITE-3123:
------------------------------------

             Summary: In RelBuilder, eliminate duplicate aggregate calls
                 Key: CALCITE-3123
                 URL: https://issues.apache.org/jira/browse/CALCITE-3123
             Project: Calcite
          Issue Type: Bug
            Reporter: Julian Hyde


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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to