srowen commented on a change in pull request #26543: [SPARK-29911][SQL] Fix
cache table leak when session closed
URL: https://github.com/apache/spark/pull/26543#discussion_r346713104
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/catalog/SessionCatalog.scala
##########
@@ -576,6 +576,10 @@ class SessionCatalog(
tempViews.get(formatTableName(name))
}
+ def getTempViewNames(): Seq[String] = synchronized {
Review comment:
What about `clearTempTables()` - I wonder if it should also uncache? it's
only used for testing now, but could be used in closeSession() to uncache if it
also uncached temp views.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]