Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-1436

AggregateNode NPE for aggregators other than SUM/COUNT

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.17.0
    • Component/s: core
    • Labels:
      None

      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

            Activity

              People

              • Assignee:
                michaelmior Michael Mior
                Reporter:
                gian Gian Merlino
              • Votes:
                1 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: