dianfu commented on a change in pull request #8916: [FLINK-12897][python][docs]
Improve the Python Table API docs by adding more examples
URL: https://github.com/apache/flink/pull/8916#discussion_r298476900
##########
File path: flink-python/pyflink/table/table_environment.py
##########
@@ -596,6 +659,24 @@ def exec_env(self):
@classmethod
def create(cls, stream_execution_environment, table_config=None):
+ """
+ Creates a :class:`TableEnvironment` for a
:class:`StreamExecutionEnvironment`
+
+ Example:
+ ::
+
+ >>> env = StreamExecutionEnvironment.get_execution_environment()
+ >>> table_env = StreamTableEnvironment.create(env)
+ >>> table_config = TableConfig()
Review comment:
Add some comments between these two kinds of tests?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services