zhengruifeng commented on code in PR #50507:
URL: https://github.com/apache/spark/pull/50507#discussion_r2030372067


##########
python/pyspark/util.py:
##########
@@ -395,6 +395,10 @@ def outer(ff: Callable) -> Callable:
 
             @functools.wraps(ff)
             def inner(*args: Any, **kwargs: Any) -> Any:
+                # Propagates the active remote spark session to the current 
thread.
+                from pyspark.sql.connect.session import SparkSession as SCS

Review Comment:
   ```suggestion
                   from pyspark.sql.connect.session import SparkSession as 
RemoteSparkSession
   ```
   
   normally `RemoteSparkSession` and `ConnectSparkSession` is used as the alias



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