matriv commented on a change in pull request #19147:
URL: https://github.com/apache/flink/pull/19147#discussion_r830007307
##########
File path: flink-python/pyflink/table/table_environment.py
##########
@@ -1664,11 +1663,13 @@ def create(stream_execution_environment:
StreamExecutionEnvironment = None, # t
# create with StreamExecutionEnvironment.
>>> env = StreamExecutionEnvironment.get_execution_environment()
>>> table_env = StreamTableEnvironment.create(env)
- # create with StreamExecutionEnvironment and TableConfig.
- >>> table_config = TableConfig()
- >>> table_env = StreamTableEnvironment.create(env, table_config)
# create with StreamExecutionEnvironment and EnvironmentSettings.
- >>> environment_settings = EnvironmentSettings.in_streaming_mode()
+ >>> configuration = Configuration()
+ >>> configuration.set_string('execution.buffer-timeout', '1 min')
+ >>> environment_settings = EnvironmentSettings
+ >>> .new_instance()
+ >>> .in_streaming_mode()
+ >>> .with_configuration(configuration)
Review comment:
Apologies @twalthr, I've rushed. fixed it.
--
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]