Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
HyukjinKwon committed Dec 9, 2024
1 parent 93b72a0 commit f6df8f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/pyspark/sql/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -496,9 +496,9 @@ def getOrCreate(self) -> "SparkSession":
and SparkSession._instantiatedSession is None
):
if is_api_mode_connect:
url = opts.get("spark.remote", os.environ.get("SPARK_REMOTE"))
else:
url = opts.get("spark.master", os.environ.get("MASTER"))
else:
url = opts.get("spark.remote", os.environ.get("SPARK_REMOTE"))

if url is None:
raise PySparkRuntimeError(
Expand Down

0 comments on commit f6df8f4

Please sign in to comment.