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 "zjfplayer@hotmail.com" <zj...@hotmail.com> on 2020/11/03 01:06:07 UTC

回复: Re:flink实时流中如何实时获取当前时间

主要是现在是1.8版本 没这个函数



zjfplayer@hotmail.com
 
发件人: hailongwang
发送时间: 2020-11-03 00:24
收件人: user-zh
主题: Re:flink实时流中如何实时获取当前时间
Hi zjfplayer,
可以使用 Now() 函数,详见:https://ci.apache.org/projects/flink/flink-docs-release-1.11/dev/table/functions/systemFunctions.html#temporal-functions
Now() 函数是 not deterministic,意思是对于每条记录都会重新计算。
 
 
Best,
Hailong Wang
在 2020-10-30 10:17:27,"zjfplayer@hotmail.com" <zj...@hotmail.com> 写道:
>RT,sql方式中怎么实时取当前消息处理的时间,来插入数据库当作当前更新时间?现在用current_timestamp发现不会变,只是第一次的时间
>
>
>
>zjfplayer@hotmail.com