tkalkirill commented on code in PR #2871:
URL: https://github.com/apache/ignite-3/pull/2871#discussion_r1405986795


##########
modules/catalog/src/testFixtures/java/org/apache/ignite/internal/catalog/CatalogTestUtils.java:
##########
@@ -298,4 +301,40 @@ public void stop() throws Exception {
 
         }
     }
+
+    /**
+     * Searches for a table by name in the requested version of the catalog.
+     *
+     * @param catalogService Catalog service.
+     * @param catalogVersion Catalog version in which to find the table.
+     * @param tableName Table name.
+     */
+    public static CatalogTableDescriptor table(CatalogService catalogService, 
int catalogVersion, String tableName) {
+        CatalogTableDescriptor tableDescriptor = 
catalogService.tables(catalogVersion).stream()
+                .filter(table -> tableName.equals(table.name()))
+                .findFirst()
+                .orElse(null);
+
+        assertNotNull(tableDescriptor, "catalogVersion=" + catalogVersion + ", 
tableName=" + tableName);
+
+        return tableDescriptor;
+    }
+
+    /**
+     * Searches for a index by name in the requested version of the catalog.

Review Comment:
   fix it



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