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_r298467864
 
 

 ##########
 File path: docs/dev/table/common.md
 ##########
 @@ -159,6 +188,28 @@ val bEnv = ExecutionEnvironment.getExecutionEnvironment
 val bTableEnv = BatchTableEnvironment.create(bEnv)
 {% endhighlight %}
 </div>
+
+<div data-lang="python" markdown="1">
+{% highlight python %}
+# ***************
+# STREAMING QUERY
+# ***************
+from pyflink.table import StreamTableEnvironment
+
+s_env = StreamExecutionEnvironment.get_execution_environment()
+# create a TableEnvironment for streaming queries
+s_table_env = StreamTableEnvironment.create(s_env)
+
+# ***********
+# BATCH QUERY
+# ***********
+from pyflink.table import BatchTableEnvironment
 
 Review comment:
   Should also import ExecutionEnvironment

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

Reply via email to