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


##########
python/pyspark/sql/streaming/state.py:
##########
@@ -170,21 +248,13 @@ def remove(self) -> None:
         self._updated = False
         self._removed = True
 
-    def setTimeoutDuration(self, durationMs: int) -> None:
+    def setTimeoutDuration(self, durationMs: Union[int, str]) -> None:
         """
         Set the timeout duration in ms for this key.
         Processing time timeout must be enabled.

Review Comment:
   shall we add a `versionchanged` to doc that `str` is supported?
   



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