This is an automated email from the ASF dual-hosted git repository. zhuzh pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/flink.git
commit 7eaa5db30244b8b5d9cdc6ab0cb327e255d6fadc Author: JunRuiLee <[email protected]> AuthorDate: Mon Dec 4 11:58:50 2023 +0800 [FLINK-33581][python] Deprecate getter/setter methods related to state backend in python flink. This closes #23864. --- flink-python/pyflink/datastream/stream_execution_environment.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/flink-python/pyflink/datastream/stream_execution_environment.py b/flink-python/pyflink/datastream/stream_execution_environment.py index 55543c67b80..d1b7ce41118 100644 --- a/flink-python/pyflink/datastream/stream_execution_environment.py +++ b/flink-python/pyflink/datastream/stream_execution_environment.py @@ -331,7 +331,14 @@ class StreamExecutionEnvironment(object): :param state_backend: The :class:`StateBackend`. :return: This object. + + .. note:: Deprecated since version 1.19: This method is deprecated and will be removed in + future FLINK major version. Use `stream_execution_environment.configure` method + instead to set the state backend. """ + warnings.warn("Deprecated since version 1.19: This method is deprecated and will be removed" + " in future FLINK major version. Use `stream_execution_environment.configure`" + " method instead to set the state backend.", DeprecationWarning) self._j_stream_execution_environment = \ self._j_stream_execution_environment.setStateBackend(state_backend._j_state_backend) return self
