pan3793 commented on code in PR #4412:
URL: https://github.com/apache/kyuubi/pull/4412#discussion_r1117871381


##########
externals/kyuubi-spark-sql-engine/src/main/scala/org/apache/kyuubi/engine/spark/session/SparkSessionImpl.scala:
##########
@@ -39,6 +40,10 @@ class SparkSessionImpl(
     val spark: SparkSession)
   extends AbstractSession(protocol, user, password, ipAddress, conf, 
sessionManager) {
 
+  override val handle: SessionHandle =
+    
conf.get(KyuubiReservedKeys.KYUUBI_SESSION_HANDLE_KEY).map(SessionHandle.fromUUID).getOrElse(
+      SessionHandle())

Review Comment:
   `KYUUBI_SESSION_HANDLE_KEY` should always present
   ```suggestion
     override val handle: SessionHandle = 
SessionHandle.fromUUID(conf(KYUUBI_SESSION_HANDLE_KEY))
   ```



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