HyukjinKwon commented on code in PR #48843:
URL: https://github.com/apache/spark/pull/48843#discussion_r1844955442


##########
python/pyspark/sql/session.py:
##########
@@ -600,6 +600,7 @@ def create(self) -> "SparkSession":
 
     _instantiatedSession: ClassVar[Optional["SparkSession"]] = None
     _activeSession: ClassVar[Optional["SparkSession"]] = None
+    _thread_local = local()

Review Comment:
   Let's make this as an instance within session because one thread might have 
multiple sessions running



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