cloud-fan commented on code in PR #50000:
URL: https://github.com/apache/spark/pull/50000#discussion_r1960949203


##########
python/pyspark/sql/session.py:
##########
@@ -508,6 +508,11 @@ def getOrCreate(self) -> "SparkSession":
 
                             if url is None and is_api_mode_connect:
                                 url = opts.get("spark.master", 
os.environ.get("MASTER", "local"))
+                                if url.startswith("sc://"):

Review Comment:
   instead of a bandaid fix, can we refactor the code to have different 
branches for `--remote` and `--master`?



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