amorynan commented on code in PR #54439:
URL: https://github.com/apache/doris/pull/54439#discussion_r2278539574
##########
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:
we can support some type to calculate which I defined in this pr(
https://github.com/apache/doris/pull/54582 )
fe/fe-core/src/main/java/org/apache/doris/nereids/types/DataType.java:
canBeCalculatedInArray
--
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]