开发者社区> 问答> 正文

Table API 有 类似于 SQL API 的 TO_TIMESTAMP 函数吗?

.field("event_time", TIMESTAMP()).rowtime( new Rowtime() .timestampsFromField("maxwell_ts") .watermarksPeriodicBounded(60000) )

我这个 maxwell_ts 是 milliseconds ,直接这么用会报错:

Type TIMESTAMP(6) of table field ‘event_time’ does not match with the physical type

有类似

event_time as to_timestamp(maxwell_ts)

这么的操作码?

来自志愿者整理的flink邮件归档来自志愿者整理的FLINK邮件归档

展开
收起
小阿怪 2021-12-04 19:04:24 548 0
1 条回答
写回答
取消 提交回答
  • Table API 确实是要灵活些,只是最近两个版本中,SQL模块社区的主要精力在搞DDL,DDL可以降低用户门槛,提升易用性,Table API的迭代稍微慢了些, 我理解1.12中应该会完善Descriptor API,这也是比较重要的用户入口,目前建议优先使用DDL。

    来自志愿者整理的flink邮件归档来自志愿者整理的FLINK邮件归档

    2021-12-04 22:26:30
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
Spring Boot2.0实战Redis分布式缓存 立即下载
CUDA MATH API 立即下载
API PLAYBOOK 立即下载