xinrong-meng commented on code in PR #48056:
URL: https://github.com/apache/spark/pull/48056#discussion_r1751726121


##########
python/pyspark/sql/utils.py:
##########
@@ -399,11 +399,13 @@ def wrapped(*args: Any, **kwargs: Any) -> Any:
         if is_remote() and "PYSPARK_NO_NAMESPACE_SHARE" not in os.environ:
             from pyspark.sql.connect.window import Window as ConnectWindow
 
-            return getattr(ConnectWindow, f.__name__)(*args, **kwargs)
+            if isinstance(args[0], ConnectWindow):

Review Comment:
   Thank you for pointing it out! You are right. I removed the unreachable 
exception and adjusted the docstring.



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