yangzhg commented on code in PR #11646:
URL: https://github.com/apache/doris/pull/11646#discussion_r948567249


##########
fe/fe-core/src/main/java/org/apache/doris/alter/MaterializedViewHandler.java:
##########
@@ -1139,4 +1141,21 @@ public Map<Long, Set<Long>> getTableRunningJobMap() {
         return tableRunningJobMap;
     }
 
+    public void 
processCreateMultiTablesMaterializedView(CreateMultiTableMaterializedViewStmt 
addMVClause)
+            throws UserException {
+        Map<String, OlapTable> olapTables = addMVClause.getOlapTables();
+        try {
+            olapTables.values().forEach(Table::writeLock);
+            for (OlapTable table : olapTables.values()) {
+                
table.checkStableAndNormal(addMVClause.getDatabase().getClusterName());
+                if (table.existTempPartitions()) {
+                    throw new DdlException("Can not alter table when there are 
temp partitions in table");

Review Comment:
   The source table is not modified when creating mtmv, so the check should 
removed
   



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to