You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2022/07/19 06:14:46 UTC

[GitHub] [doris] cambyzju commented on a diff in pull request #10824: [Fix] (array-type) add the supported sub-type and regression

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

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


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