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


##########
python/pyspark/sql/session.py:
##########
@@ -543,9 +543,12 @@ def getOrCreate(self) -> "SparkSession":
 
                 session = SparkSession._instantiatedSession
                 if session is None or session._sc._jsc is None:
+                    SparkContext._ensure_initialized()

Review Comment:
   Hmmm .. actually I think this causes SPARK-50281 by not passing the core 
confs like `spark.jars` because `_ensure_initialized` creates JVM but the jars 
have to be passed when launching Py4J server.



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