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_r298475333
##########
File path: flink-python/pyflink/table/table.py
##########
@@ -452,6 +452,12 @@ def window(self, window):
If the :func:`~pyflink.table.GroupWindowedTable.group_by` only
references a GroupWindow
alias, the streamed table will be processed by a single task,
i.e., with parallelism 1.
+ Example:
+ ::
+
+ >>>
tab.window(Tumble.over("10.minutes").on("rowtime").alias("w")).group_by("w") \\
+ ... .select("a.sum as a, w.start as b, w.end as c, w.rowtime
as d")
Review comment:
What about putting the `group_by` statement in a separate line?
----------------------------------------------------------------
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