flinksql 报错
org.apache.flink.table.api.TableException: OVER windows’ ordering in stream mode must be defined on a time attribute.
org.apache.flink.table.api.TableException: OVER windows’ ordering in stream mode must be defined on a time attribute.
这个最常见的是row_number()over()里
其实问题很简单,根据官网说的就是 over(partition by order by) 的这个排序字段 必须是一个时间属性 timestamp的字段 例如 proctime as PROCTIME(),
over(parttition by A order by proctime )
本文介绍了在使用FlinkSQL处理流数据时遇到的错误:OVER窗口在流模式下必须基于时间属性定义排序。错误通常出现在row_number() over()函数中。解决方案是确保over(partition by order by)的排序字段为时间属性,如timestamp或proctime。
577

被折叠的 条评论
为什么被折叠?



