morningman commented on a change in pull request #2781: Batch Operate Rollup 
table in Doris #2671
URL: https://github.com/apache/incubator-doris/pull/2781#discussion_r376701280
 
 

 ##########
 File path: fe/src/main/java/org/apache/doris/alter/SchemaChangeHandler.java
 ##########
 @@ -1436,7 +1437,8 @@ public void cancel(CancelStmt stmt) throws DdlException {
             }
 
             // find from new alter jobs first
-            schemaChangeJobV2 = getUnfinishedAlterJobV2(olapTable.getId());
+            List<AlterJobV2> schemaChangeJobV2List = 
getUnfinishedAlterJobV2ByTableId(olapTable.getId());
+            schemaChangeJobV2 = schemaChangeJobV2List.size() == 0 ? 
schemaChangeJobV2 : Iterables.getOnlyElement(schemaChangeJobV2List);
 
 Review comment:
   ```suggestion
               schemaChangeJobV2 = schemaChangeJobV2List.size() == 0 ? null : 
Iterables.getOnlyElement(schemaChangeJobV2List);
   ```

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

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

Reply via email to