AMashenkov commented on a change in pull request #9787:
URL: https://github.com/apache/ignite/pull/9787#discussion_r800545149



##########
File path: 
modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/exec/exp/agg/AccumulatorsFactory.java
##########
@@ -214,6 +214,11 @@ private WrapperPrototype(AggregateCall call) {
             List<RelDataType> inTypes = SqlTypeUtil.projectTypes(inputRowType, 
call.getArgList());
             List<RelDataType> outTypes = 
accumulator.argumentTypes(ctx.getTypeFactory());
 
+            if (call.getArgList().size() > outTypes.size()) {

Review comment:
       Just to throw an exception with a meaningful message, rather than 
ArrayIndexOutOfBound.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to