Aggarwal-Raghav commented on code in PR #5616:
URL: https://github.com/apache/hive/pull/5616#discussion_r1930054948


##########
ql/src/java/org/apache/hadoop/hive/ql/ddl/database/create/CreateDatabaseAnalyzer.java:
##########
@@ -113,6 +114,7 @@ public void analyzeInternal(ASTNode root) throws 
SemanticException {
       database.setType(DatabaseType.REMOTE);
       database.setRemote_dbname(remoteDbName);
     }
+    database.setOwnerName(SessionState.getUserFromAuthenticator());

Review Comment:
   Sure @okumin, the first point makes sense if other authorizer or in future 
ranger starts using it. I will update the PR by adding 
`database.setOwnerType(PrincipalType.USER);`
   
   My understanding is when we do `kinit ntid/serviceId@Realm `, even serviceId 
is considered as user. So setting `PrincipalType.USER` from hive should be ok!



-- 
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: gitbox-unsubscr...@hive.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org
For additional commands, e-mail: gitbox-h...@hive.apache.org

Reply via email to