Github user viirya commented on a diff in the pull request:
https://github.com/apache/spark/pull/20404#discussion_r164103440
--- Diff: python/pyspark/sql/session.py ---
@@ -225,6 +225,7 @@ def __init__(self, sparkContext, jsparkSession=None):
if SparkSession._instantiatedSession is None \
or SparkSession._instantiatedSession._sc._jsc is None:
SparkSession._instantiatedSession = self
+
self._jvm.org.apache.spark.sql.SparkSession.setDefaultSession(self._jsparkSession)
--- End diff --
`setActiveSession` or `setDefaultSession`? Which one is more proper to set
here?
Btw, shall we clear it when stopping PySpark SparkSession?
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]