Details
-
Sub-task
-
Status: In Progress
-
Major
-
Resolution: Unresolved
-
1.25.0
-
None
-
None
Description
RelBuilder throws NullPointerException while implementing GROUP_ID().
CALCITE-4220 introduced the following method:
@Override public AggregateCall aggregateCall() { return AggregateCall.create(aggFunction, distinct, approximate, ignoreNulls, ImmutableList.of(), -1, /* collation: */ null, /* type: */ null, alias); }
In practice AggregateCall constructor has null checks, so aggregateCall would always throw NPE:
this.type = Objects.requireNonNull(type); this.collation = Objects.requireNonNull(collation);
julianhyde, would you please check if that behavior is expected?
Attachments
Attachments
Issue Links
- relates to
-
CALCITE-4220 In SqlToRelConverter, use RelBuilder for creating Aggregate
- Closed