SQL 流作业 window 可定义在两种时间属性类型字段上:
1) event time: ddl 中需要给时间类型字段 (timestamp) 定义 watermark
2) process time: 使用 PROCTIME()

On 6/1/21, guoyb <[email protected]> wrote:
> 是的。
>
>
> 大神能否指条明路解决这问题。
>
>
>
> ---原始邮件---
> 发件人: "MOBIN"<[email protected]&gt;
> 发送时间: 2021年6月1日(周二) 晚上7:09
> 收件人: "[email protected]"<[email protected]&gt;;
> 主题: 回复:窗口函数使用的时间类型
>
>
> 是不是报的类似下面的错?
> Window aggregate can only be defined over a time attribute column, but
> TIMESTAMP(3) encountered
>
>
> | |
> MOBIN
> |
> 签名由网易邮箱大师定制
>
>
> 在2021年06月1日 19:00,guoyb<[email protected]&gt; 写道:
> tumble() 开窗,需要的事件时间到底需要什么时间类型?一直报时间不对
> timestamp(3)
> datetime
> time
> 都试过了,没有一个对的。

回复