HyukjinKwon commented on code in PR #41206: URL: https://github.com/apache/spark/pull/41206#discussion_r1197216790
########## python/pyspark/shell.py: ########## @@ -100,10 +100,11 @@ % (platform.python_version(), platform.python_build()[0], platform.python_build()[1]) ) if is_remote(): - print( - "Client connected to the Spark Connect server at %s" - % urlparse(os.environ["SPARK_REMOTE"]).netloc - ) + url = os.environ.get("SPARK_REMOTE", None) + assert url is not None + if url.startswith("local"): Review Comment: Previously it was `SPARK_REMOTE` was replaced to `sc://localhost` via Spark session initialization. We don't do this anymore after https://github.com/apache/spark/pull/41013, and that's why it needs some manual change here for display. -- 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