Description
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.
Attachments
Issue Links
- Blocked
-
CALCITE-2228 An inevitable NPE while using MAX aggregation function
- Closed
- is depended upon by
-
CALCITE-1805 Druid adapter incorrectly pushes down "COUNT(c)"; Druid only supports "COUNT(*)"
- Closed
- is duplicated by
-
CALCITE-1437 AggregateNode NPE for aggregators other than SUM/COUNT
- Closed
-
CALCITE-1687 NPE in AggregateNode.getAccumulator
- Closed
- is related to
-
CALCITE-1706 DruidAggregateFilterTransposeRule causes very fine-grained aggregations to be pushed to Druid
- Closed