liaoxin01 commented on code in PR #57625:
URL: https://github.com/apache/doris/pull/57625#discussion_r2488888489


##########
fe/fe-core/src/main/java/org/apache/doris/service/FrontendServiceImpl.java:
##########
@@ -1463,7 +1463,29 @@ private List<Table> 
queryLoadCommitTables(TLoadTxnCommitRequest request, Databas
             }
             return Collections.singletonList(table);
         }
+        // Use table IDs if available (for multi-table loads)
+        if (CollectionUtils.isNotEmpty(request.getTableIds())) {
+            List<Table> tables = new ArrayList<>(request.getTableIds().size());
+            for (Long tableId : request.getTableIds()) {
+                Table table = 
Env.getCurrentEnv().getInternalCatalog().getTableByTableId(tableId);
+                if (table == null) {
+                    throw new MetaNotFoundException("unknown table, table_id=" 
+ tableId);
+                }
+                tables.add(table);
+            }
+            if (tables.size() > 1) {

Review Comment:
   There is some duplication with the following 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: [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