brijrajk commented on code in PR #56178:
URL: https://github.com/apache/spark/pull/56178#discussion_r3348702672
##########
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:
Good point, added! A `versionchanged` note is useful here because this is a
behavioral change to an existing method — users upgrading from an older Spark
version would not know that string durations are now accepted unless the API
docs call it out explicitly.
--
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]