korlov42 commented on code in PR #6830:
URL: https://github.com/apache/ignite-3/pull/6830#discussion_r2465968266


##########
modules/catalog/src/main/java/org/apache/ignite/internal/catalog/commands/CatalogUtils.java:
##########
@@ -822,4 +823,30 @@ public static int defaultQuorumSize(int replicas) {
         }
         return 3;
     }
+
+    /**
+     * Resolves column names from their corresponding column IDs within a 
catalog table.
+     *
+     * <p>This method takes a list of column IDs and maps each ID to its 
corresponding column name
+     * by looking up the column descriptor in the provided table. The order of 
column names in the
+     * returned list matches the order of column IDs in the input list.
+     *
+     * @param table The catalog table descriptor containing the column 
definitions to search within.
+     * @param columnIds The list of column IDs to resolve into column names.
+     * @return A list of column names corresponding to the provided column 
IDs, in the same order.
+     * @throws IllegalArgumentException if any column ID in the list does not 
exist in the table
+     */
+    public static List<String> resolveColumnNames(CatalogTableDescriptor 
table, IntList columnIds) {

Review Comment:
   fair enough, replaced stream with for-loop



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

Reply via email to