pan3793 commented on a change in pull request #857:
URL: https://github.com/apache/incubator-kyuubi/pull/857#discussion_r677087420
##########
File path:
externals/kyuubi-spark-sql-engine/src/main/scala/org/apache/kyuubi/engine/spark/session/SparkSQLSessionManager.scala
##########
@@ -69,6 +71,14 @@ class SparkSQLSessionManager private (name: String, spark:
SparkSession)
setSession(handle, sessionImpl)
info(s"$user's session with $handle is opened, current opening sessions"
+
s" $getOpenSessionCount")
+
+ if (!this.conf.get(ENGINE_SINGLE_SPARK_SESSION)) {
+
kyuubiConf.get(KyuubiConf.ENGINE_SESSION_INITIALIZE_SQL).split(";").foreach {
sql =>
+ info(s"execute session init sql: $sql")
Review comment:
updated
##########
File path:
externals/kyuubi-spark-sql-engine/src/main/scala/org/apache/kyuubi/engine/spark/SparkSQLEngine.scala
##########
@@ -99,7 +99,10 @@ object SparkSQLEngine extends Logging {
}
val session = SparkSession.builder.config(sparkConf).getOrCreate
-
kyuubiConf.get(KyuubiConf.ENGINE_INITIALIZE_SQL).split(";").foreach(session.sql(_).show)
+ kyuubiConf.get(KyuubiConf.ENGINE_INITIALIZE_SQL).split(";").foreach { sql
=>
+ info(s"execute engine init sql: $sql")
Review comment:
updated
--
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]