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


##########
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:
   不一定,不同的函数可能不一样,比如minmax 就可以计算string,sum 只能计算数字



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