calcite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gian Merlino (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CALCITE-1436) AggregateNode NPE for aggregators other than SUM/COUNT
Date Thu, 13 Oct 2016 16:51:20 GMT
Gian Merlino created CALCITE-1436:
-------------------------------------

             Summary: AggregateNode NPE for aggregators other than SUM/COUNT
                 Key: CALCITE-1436
                 URL: https://issues.apache.org/jira/browse/CALCITE-1436
             Project: Calcite
          Issue Type: Bug
          Components: core
            Reporter: Gian Merlino
            Assignee: Julian Hyde


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)

Mime
View raw message