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


##########
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:
   The return type of 'Type.getArraySubTypes() ' is ArrayList<Type>. 
   But here the 'type' is the sub-type of array, I think no need use 
'getArraySubTypes()' again.



-- 
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: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to