ibessonov commented on code in PR #3518:
URL: https://github.com/apache/ignite-3/pull/3518#discussion_r1544324587
##########
modules/catalog/src/main/java/org/apache/ignite/internal/catalog/commands/CatalogUtils.java:
##########
@@ -433,6 +450,23 @@ public static CatalogTableDescriptor
tableOrThrow(CatalogSchemaDescriptor schema
return table;
}
+ /**
+ * Returns a table descriptor of the table with the a given ID.
+ *
+ * @param catalog Catalog to look up the table in.
+ * @param tableId Table ID.
+ * @throws TableNotFoundValidationException If table does not exist.
+ */
+ public static CatalogTableDescriptor tableOrThrow(Catalog catalog, int
tableId) throws IndexNotFoundValidationException {
Review Comment:
```suggestion
public static CatalogTableDescriptor tableOrThrow(Catalog catalog, int
tableId) throws TableNotFoundValidationException {
```
##########
modules/catalog/src/main/java/org/apache/ignite/internal/catalog/commands/CatalogUtils.java:
##########
@@ -413,6 +413,23 @@ public static CatalogSchemaDescriptor
schemaOrThrow(Catalog catalog, String name
return schema;
}
+ /**
+ * Returns a schema descriptor of the schema with the a given ID.
+ *
+ * @param catalog Catalog to look up the schema in.
+ * @param schemaId Schema ID.
+ * @throws CatalogValidationException If schema does not exist.
+ */
+ public static CatalogSchemaDescriptor schemaOrThrow(Catalog catalog, int
schemaId) throws IndexNotFoundValidationException {
Review Comment:
```suggestion
public static CatalogSchemaDescriptor schemaOrThrow(Catalog catalog, int
schemaId) throws CatalogValidationException {
```
--
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]