cloud-fan commented on code in PR #37404:
URL: https://github.com/apache/spark/pull/37404#discussion_r945726800


##########
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/FileStatusCache.scala:
##########
@@ -49,7 +52,9 @@ object FileStatusCache {
           session.sqlContext.conf.metadataCacheTTL
         )
       }
-      sharedCache.createForNewClient()

Review Comment:
   reading the code more, I think this `FileStatusCache` is not per session, 
but per invocation. If we really want to clear all states for a session, we 
should keep a map of `Map[String, Seq[FileStatusCache]]`



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