amorynan commented on code in PR #54439:
URL: https://github.com/apache/doris/pull/54439#discussion_r2278784591


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/functions/scalar/ArraySum.java:
##########
@@ -72,10 +72,10 @@ private ArraySum(ScalarFunctionParams functionParams) {
 
     @Override
     public void checkLegalityBeforeTypeCoercion() {
-        DataType argType = child().getDataType();
-        if (((ArrayType) argType).getItemType().isComplexType()) {
-            throw new AnalysisException(toSql() + " does not support type: "
-                                            + ((ArrayType) 
argType).getItemType().toString());
+        DataType argType = child(0).getDataType();

Review Comment:
   我觉得我们需要啊



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to