allisonwang-db commented on code in PR #43653:
URL: https://github.com/apache/spark/pull/43653#discussion_r1382270861


##########
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:
   side note: we might want to move all these errors in this file to use error 
classes cc @itholic 



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