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


##########
modules/table/src/testFixtures/java/org/apache/ignite/internal/table/TableTestUtils.java:
##########
@@ -198,10 +198,33 @@ public static int getTableIdStrict(CatalogService 
catalogService, String tableNa
      * @throws AssertionError If table is absent.
      */
     public static int getIndexIdStrict(CatalogService catalogService, String 
indexName, long timestamp) {
-        Integer indexId = getIndexId(catalogService, indexName, timestamp);
+        return getIndexStrict(catalogService, indexName, timestamp).id();
+    }
+
+    /**
+     * Returns index descriptor form catalog, {@code null} if table is absent.
+     *
+     * @param catalogService Catalog service.
+     * @param indexName Index name.
+     * @param timestamp Timestamp.
+     */
+    public static @Nullable CatalogIndexDescriptor getIndex(CatalogService 
catalogService, String indexName, long timestamp) {
+        return catalogService.index(indexName, timestamp);
+    }
+
+    /**
+     * Returns index descriptor form 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