Resol1992 commented on code in PR #37404:
URL: https://github.com/apache/spark/pull/37404#discussion_r961515565
##########
sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/SparkSQLSessionManager.scala:
##########
@@ -88,6 +88,7 @@ private[hive] class SparkSQLSessionManager(hiveServer:
HiveServer2, sqlContext:
HiveThriftServer2.eventManager.onSessionClosed(sessionHandle.getSessionId.toString)
val ctx =
sparkSqlOperationManager.sessionToContexts.getOrDefault(sessionHandle,
sqlContext)
ctx.sparkSession.sessionState.catalog.getTempViewNames().foreach(ctx.uncacheTable)
+ ctx.sparkSession.sessionState.closeState()
Review Comment:
@yaooqinn Thanks for your review.
when `SparkSQLSessionManager.closeSession()` is called, it indicates that
the sparkSession should be closed, so we should also call close
`SparkSession.sessionState`.
--
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]