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


##########
python/pyspark/sql/session.py:
##########
@@ -470,6 +470,14 @@ def getOrCreate(self) -> "SparkSession":
                         ):
                             url = opts.get("spark.remote", 
os.environ.get("SPARK_REMOTE"))
 
+                            if url is None:
+                                raise RuntimeError(

Review Comment:
   Hm, `SPARK_CONNECT_MODE_ENABLED` is an internal environment variable so I 
would like to avoid mentioning directly in the error message.



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