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/07/03 19:03:00 UTC

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

     [ https://issues.apache.org/jira/browse/CALCITE-3123?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Julian Hyde resolved CALCITE-3123.
----------------------------------
       Resolution: Fixed
    Fix Version/s: 1.20.0

Fixed in [e01ba5ab6|https://github.com/apache/calcite/commit/e01ba5ab6].

> 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
>            Priority: Major
>             Fix For: 1.20.0
>
>
> 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)