roryqi commented on code in PR #10288:
URL: https://github.com/apache/gravitino/pull/10288#discussion_r2899013848
##########
server/src/main/java/org/apache/gravitino/server/web/rest/TableOperations.java:
##########
@@ -142,10 +142,7 @@ public Response createTable(
NameIdentifierUtil.ofTable(metalake, catalog, schema,
request.getName());
// Make sure schema is imported, otherwise set owner for the table
may fail.
- MetadataObjectUtil.checkMetadataObject(
- metalake,
- MetadataObjects.of(
- Lists.newArrayList(catalog, schema),
MetadataObject.Type.SCHEMA));
+ schemaDispatcher.loadSchema(NameIdentifierUtil.ofSchema(metalake,
catalog, schema));
Review Comment:
If we are using managed storage, we can avoid this issue. We use loadSchema
to import external existed entities now. I can document this first.
--
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]