yuqi1129 commented on code in PR #4323:
URL: https://github.com/apache/gravitino/pull/4323#discussion_r1700279875
##########
core/src/main/java/org/apache/gravitino/authorization/AuthorizationUtils.java:
##########
@@ -131,58 +132,127 @@ public static <T> void prepareAuthorizationHooks(T
manager, DispatcherHooks hook
hooks.addPostHook(
"createMetalake",
(args, metalake) -> {
- // TODO: Add the logic of setting the owner
+ NameIdentifier identifier = (NameIdentifier) ((Object[]) args)[0];
Review Comment:
So if we change the method `createMetalake` and the type of first argument
is NOT `NameIdentifier`, we could not detect the error through compilation
stage.
--
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]