sshari94 commented on code in PR #14933:
URL: https://github.com/apache/gravitino/pull/14933#discussion_r4581827179
##########
server/src/main/java/org/apache/gravitino/server/web/rest/TableOperations.java:
##########
@@ -148,6 +156,7 @@ public Response createTable(
request.validate();
NameIdentifier ident =
NameIdentifierUtil.ofTable(metalake, catalog, schema,
request.getName());
+ checkOverwriteAllowed(ident, request.getProperties());
Review Comment:
Thanks, done in 468baa2. The check and
`TestTableOperationsOverwriteAuthorization` are removed, and `TableOperations`
matches `main` again. `OverwriteAuthzHandler` already covers overwrite on both
create-table and register-table. I added regression tests there for spacing and
case variants of the mode on both endpoints, and for a client-supplied
`lance.creation-mode` property, which can't replace the authorized mode. The PR
description and issue scope are updated.
--
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]