Copilot commented on code in PR #50907:
URL: https://github.com/apache/doris/pull/50907#discussion_r2110849346


##########
fe/fe-core/src/main/java/org/apache/doris/alter/SchemaChangeHandler.java:
##########
@@ -1838,7 +1845,11 @@ public List<List<Comparable>> 
getAllIndexChangeJobInfos() {
             // which already check the ADMIN priv.
             indexChangeJob.getInfo(indexChangeJobInfos);
         }
-
+        for (AlterJobV2 alterJob : ImmutableList.copyOf(alterJobsV2.values())) 
{

Review Comment:
   Consider consolidating the two iterations over 'alterJobsV2' in the 
getAllIndexChangeJobInfos methods to filter by DB id once, reducing potential 
redundancy and improving maintainability.



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