You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "morningman (via GitHub)" <gi...@apache.org> on 2024/03/22 03:54:42 UTC

Re: [PR] [feature][insert]add FE UT and support CTAS for external table [doris]

morningman commented on code in PR #32525:
URL: https://github.com/apache/doris/pull/32525#discussion_r1535017439


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/info/CreateTableInfo.java:
##########
@@ -525,11 +525,16 @@ public void validate(ConnectContext ctx) {
         }
     }
 
+    /**
+     * validate ctas definition
+     */
     public void validateCreateTableAsSelect(List<ColumnDefinition> columns, ConnectContext ctx) {
         this.columns = Utils.copyRequiredMutableList(columns);
         // bucket num is hard coded 10 to be consistent with legacy planner
-        this.distribution = new DistributionDescriptor(true, false, 10,
-                Lists.newArrayList(columns.get(0).getName()));
+        if (engineName.equals("olap") && this.distribution == null) {

Review Comment:
   We need check it strictly.
   If engine name is not OLAP and distribution is not null, should throw exception.



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