You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-zh@flink.apache.org by 邹云鹤 <ke...@163.com> on 2021/06/03 08:16:18 UTC

回复: flink 1.13.0 中cumulate window 使用

大佬, 你好


| |
邹云鹤
|
|
kevinyunhe@163.com
|
签名由网易邮箱大师定制
在2021年5月28日 11:52,邹云鹤<ke...@163.com> 写道:
好的,我再研究下。


| |
邹云鹤
|
|
kevinyunhe@163.com
|
签名由网易邮箱大师定制
在2021年5月28日 11:51,Leonard Xu<xb...@gmail.com> 写道:
Hi,

Cumulate window 是基于 window TVF 语法的,和之前的 groupWindowFunction 不一样, 你可以参考 [1]
Window TVF 也支持了 tumble window, hop window, 并且性能更优,session window 预计会在1.14支持, session window 有需要可以使用老的语法。

Best,
Leonard
[1] https://ci.apache.org/projects/flink/flink-docs-release-1.13/zh/docs/dev/table/sql/queries/window-agg/#windowing-tvfs


在 2021年5月28日,11:43,邹云鹤 <ke...@163.com> 写道:

insert into `test_out` select a.uid, 'dt', max(a.age) from `test_in` as a group by uid, cumulate(PROCTIME(), interval '1' minute, interval '1' hour);


hello, 各位大佬, flink 1.13.0 中流式作业中该怎么使用cumulate window呢?我用上面的SQL 貌似是不行, 有没有使用过的大佬给点建议?




| |
邹云鹤
|
|
kevinyunhe@163.com
|
签名由网易邮箱大师定制