HyukjinKwon commented on code in PR #39041:
URL: https://github.com/apache/spark/pull/39041#discussion_r1052017485


##########
python/pyspark/sql/observation.py:
##########
@@ -109,7 +111,9 @@ def _on(self, df: DataFrame, *exprs: Column) -> DataFrame:
         )
         return DataFrame(observed_df, df.sparkSession)
 
-    @property
+    # Note that decorated property only works with Python 3.9+ which Spark 
Connect requires.
+    @property  # type: ignore[misc]
+    @try_remote_observation

Review Comment:
   It calls the remote version of `Observation` API (see 
https://github.com/apache/spark/pull/39041/files/75bfce50110079a6918cb81169d1cd2197d56eba#diff-bdc591068d0c75d5011d05bf27cb6a49c3d31a583b60e0258059135e18881e98R352-R362).
   
   Since `Observation` API is not implemented yet in Spark Connect, it throws 
an exception for now if `remote` is enabled.



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