cambyzju commented on code in PR #10824:
URL: https://github.com/apache/doris/pull/10824#discussion_r924096613


##########
fe/fe-core/src/main/java/org/apache/doris/analysis/TypeDef.java:
##########
@@ -118,8 +118,11 @@ private void analyzeNestedType(ScalarType type) throws 
AnalysisException {
             throw new AnalysisException("Unsupported data type: " + 
type.toSql());
         }
         if (!type.getPrimitiveType().isIntegerType()
-                && !type.getPrimitiveType().isCharFamily()) {
-            throw new AnalysisException("Array column just support INT/VARCHAR 
sub-type");
+                && !type.getPrimitiveType().isCharFamily()

Review Comment:
   use Type.getArraySubTypes() to check nested type of array.



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