tkalkirill commented on code in PR #2500: URL: https://github.com/apache/ignite-3/pull/2500#discussion_r1319418369
########## modules/table/src/testFixtures/java/org/apache/ignite/internal/table/TableTestUtils.java: ########## @@ -61,6 +62,46 @@ public static void createTable( assertThat(catalogManager.createTable(builder.build()), willCompleteSuccessfully()); } + /** + * Drops table in the catalog. + * + * @param catalogManager Catalog manager. + * @param schemaName Schema name. + * @param tableName Table name. + */ + public static void dropTable(CatalogManager catalogManager, String schemaName, String tableName) { + assertThat( + catalogManager.dropTable(DropTableParams.builder().schemaName(schemaName).tableName(tableName).build()), + willCompleteSuccessfully() + ); + } + + /** + * Returns table descriptor form catalog, {@code null} if table is absent. + * + * @param catalogService Catalog service. + * @param tableName Table name. + * @param timestamp Timestamp. + */ + public static @Nullable CatalogTableDescriptor getTable(CatalogService catalogService, String tableName, long timestamp) { + return catalogService.table(tableName, timestamp); + } + + /** + * Returns table descriptor form catalog, {@code null} if table is absent. + * + * @param catalogService Catalog service. + * @param tableName Table name. + * @param timestamp Timestamp. + */ + public static CatalogTableDescriptor getTableStrict(CatalogService catalogService, String tableName, long timestamp) { Review Comment: Thanks for the info, I'll leave it as it is =) -- 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: notifications-unsubscr...@ignite.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org