yuqi1129 commented on code in PR #14933:
URL: https://github.com/apache/gravitino/pull/14933#discussion_r4581582727


##########
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:
   [Important] After reconsidering option 2 in #14902, I would like to keep 
overwrite authorization at the Lance REST boundary. The generic Gravitino 
createTable endpoint should not interpret `lance.creation-mode` or acquire 
Lance-specific authorization rules. We are keeping the existing 
connector-property passthrough behavior in the Gravitino API for this change.
   
   Please remove this check from TableOperations and the tests that establish 
that policy at this endpoint. Lance REST already has OverwriteAuthzHandler; 
please verify that both create-table and register-table overwrite requests are 
covered there, and add any missing regression coverage in that layer. There is 
no need to duplicate an existing check or move it into catalog/core interfaces. 
Please also update the PR/issue scope to reflect this boundary decision.



-- 
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