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


##########
fe/fe-core/src/main/java/org/apache/doris/analysis/ColumnDef.java:
##########
@@ -271,8 +273,10 @@ public void analyze(boolean isOlap) throws 
AnalysisException {
                 throw new AnalysisException("Array can only be used in the 
non-key column of"
                         + " the duplicate table at present.");
             }
-            if (defaultValue.isSet && defaultValue != 
DefaultValue.NULL_DEFAULT_VALUE) {
-                throw new AnalysisException("Array type column default value 
only support null");
+            if (defaultValue.isSet && defaultValue != 
DefaultValue.NULL_DEFAULT_VALUE

Review Comment:
   it's ok for array type. null for NULL(Array), [] for NOT NULL(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-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