FlinkSql bug :OVER windows‘ ordering in stream mode must be defined on a time attribute.

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 )

你可能感兴趣的:(报错调试记录,bug)