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 2016/10/13 20:21:21 UTC

[jira] [Resolved] (CALCITE-1437) AggregateNode NPE for aggregators other than SUM/COUNT

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

Julian Hyde resolved CALCITE-1437.
----------------------------------
       Resolution: Duplicate
    Fix Version/s: 1.11.0

> AggregateNode NPE for aggregators other than SUM/COUNT
> ------------------------------------------------------
>
>                 Key: CALCITE-1437
>                 URL: https://issues.apache.org/jira/browse/CALCITE-1437
>             Project: Calcite
>          Issue Type: Bug
>          Components: core
>            Reporter: Gian Merlino
>            Assignee: Julian Hyde
>             Fix For: 1.11.0
>
>
> AggregateNode.getAccumulator does this for any aggregation other than COUNT or SUM:
>       final AggImpState agg = new AggImpState(0, call, false);
>       int stateSize = agg.state.size();
> This NPEs because "state" is null on freshly created AggImpState instances.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)