Skip to content

Commit

Permalink
Require not null for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
JiajunBernoulli committed Jan 28, 2024
1 parent 2602f08 commit acd6d11
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/src/main/java/org/apache/calcite/tools/RelBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -2533,8 +2533,9 @@ private RelBuilder aggregate_(GroupKeyImpl groupKey,
private AggregateCall removeRedundantDistinct(
AggregateCall aggregateCall,
ImmutableBitSet groupSet,
RelNode r) {
RelNode relNode) {
if (aggregateCall.isDistinct() && !config.redundantDistinct()) {
final RelNode r = requireNonNull(relNode, "relNode");
final RelMetadataQuery mq = r.getCluster().getMetadataQuery();
final List<Integer> argList = aggregateCall.getArgList();
final ImmutableBitSet distinctArg = ImmutableBitSet.builder()
Expand Down

0 comments on commit acd6d11

Please sign in to comment.