diqiu50 commented on code in PR #9460:
URL: https://github.com/apache/gravitino/pull/9460#discussion_r2610591788


##########
catalogs/catalog-hive/src/main/java/org/apache/gravitino/catalog/hive/HiveCatalogOperations.java:
##########
@@ -363,31 +229,26 @@ public HiveSchema createSchema(
           HiveSchema.builder()
               .withName(ident.name())
               .withComment(comment)
+              .withCatalogName(catalogName)
               .withProperties(properties)
               .withAuditInfo(
                   AuditInfo.builder()
-                      
.withCreator(UserGroupInformation.getCurrentUser().getUserName())
+                      .withCreator(PrincipalUtils.getCurrentUserName())

Review Comment:
   Before my change, UGI.doAs was invoked enter the HiveCatalogOperation. After 
my change, UGI.doAs is executed inside the HiveClient module.



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