zhouyifan279 commented on PR #3699:
URL: https://github.com/apache/kyuubi/pull/3699#issuecomment-1376986057

   > What are the plans for database owners?
   
   For `CreateDatabaseCommand`, owner can be set in 
`CreateDatabaseCommand#props`. 
   But `InMemoryCatalog` always override owner with `Utils.getCurrentUserName` 
int `createDatabase` method.
   So we have to set owner after `CreateDatabaseCommand#run`, similar 
to`RewriteTableOwnerRunnableCommand`.
   
   For `CreateNamespaces`, owner is also overridden in 
`CreateNamespaceExec#run`.
   We can set `CreateNamespaces#catalog` to a delegated one and set owner in 
delegated catalog's `createNamespace` method.


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to