AlejandroMorgante commented on code in PR #60215:
URL: https://github.com/apache/spark/pull/60215#discussion_r4526158022


##########
python/pyspark/sql/streaming/query.py:
##########
@@ -217,7 +217,16 @@ def awaitTermination(self, timeout: Optional[int] = None) 
-> Optional[bool]:
         >>> sq.stop()
         """
         if timeout is not None:
-            if not isinstance(timeout, (int, float)) or timeout <= 0:
+            if not isinstance(timeout, (int, float)):
+                raise PySparkTypeError(
+                    errorClass="NOT_EXPECTED_TYPE",
+                    messageParameters={
+                        "arg_name": "timeout",
+                        "expected_type": "int or float",

Review Comment:
   You're right, switched to **"float or int"** to match. 
   
   Thanks!



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