ueshin commented on code in PR #49946: URL: https://github.com/apache/spark/pull/49946#discussion_r1956620122
########## python/pyspark/sql/session.py: ########## @@ -473,14 +473,22 @@ def getOrCreate(self) -> "SparkSession": url = opts.get("spark.remote", os.environ.get("SPARK_REMOTE")) + if url is None: Review Comment: No, it's for `pyspark-client` library that doesn't contain `pyspark.core` package. If the package is not available, `is_remote_only()` will return `True`. Without the change back, it will fail with an assertion error in the `RemoteSparkSession`. -- 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: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org