You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Julian Hyde (JIRA)" <ji...@apache.org> on 2019/06/07 21:15:00 UTC

[jira] [Created] (CALCITE-3123) In RelBuilder, eliminate duplicate aggregate calls

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)