You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@kyuubi.apache.org by GitBox <gi...@apache.org> on 2022/12/08 07:41:41 UTC

[GitHub] [incubator-kyuubi] qiaoting commented on a diff in pull request #3800: provide flexible scene of tenant

qiaoting commented on code in PR #3800:
URL: https://github.com/apache/incubator-kyuubi/pull/3800#discussion_r1043020208


##########
kyuubi-server/src/main/scala/org/apache/kyuubi/engine/EngineRef.scala:
##########
@@ -83,7 +85,9 @@ private[kyuubi] class EngineRef(
   // Launcher of the engine
   private[kyuubi] val appUser: String = shareLevel match {
     case SERVER => Utils.currentUser
-    case GROUP =>
+    case GROUP => if (userGroupMap.nonEmpty) {
+        userGroupMap.getOrElse(user, user)
+      } else {

Review Comment:
   Ok, thank you



-- 
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: notifications-unsubscribe@kyuubi.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org
For additional commands, e-mail: notifications-help@kyuubi.apache.org