yujun777 commented on code in PR #37114: URL: https://github.com/apache/doris/pull/37114#discussion_r1687977362
########## fe/fe-core/src/main/java/org/apache/doris/datasource/InternalCatalog.java: ########## @@ -1801,6 +1803,24 @@ public void addPartition(Database db, String tableName, AddPartitionClause addPa } } + public void addMultiPartitions(Database db, String tableName, AlterMultiPartitionClause multiPartitionClause) + throws DdlException { + List<SinglePartitionDesc> singlePartitionDescs; + try { + MultiPartitionDesc multiPartitionDesc = new MultiPartitionDesc(multiPartitionClause.getPartitionKeyDesc(), + multiPartitionClause.getProperties()); + singlePartitionDescs = multiPartitionDesc.getSinglePartitionDescList(); + } catch (AnalysisException e) { + throw new DdlException("Failed to analyze multi partition clause: " + e.getMessage()); + } + + for (SinglePartitionDesc singlePartitionDesc : singlePartitionDescs) { + AddPartitionClause addPartitionClause = new AddPartitionClause(singlePartitionDesc, null, + multiPartitionClause.getProperties(), false); + addPartition(db, tableName, addPartitionClause); Review Comment: addPartition's args had changed, pls check the lastest code. -- 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