zhengruifeng commented on code in PR #49982: URL: https://github.com/apache/spark/pull/49982#discussion_r1957816031
########## python/pyspark/errors/utils.py: ########## @@ -268,6 +266,8 @@ def wrapper(*args: Any, **kwargs: Any) -> Any: finally: set_current_origin(None, None) else: + spark = SparkSession.getActiveSession() Review Comment: yeah, we should always invoke SparkSession operations lazily -- 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