在尝试使用flink sql进行
- 读取json 格式kafka消息
- 对消息内容进行group window 计算
- 将计算结果保存到mysql表中
遇到一些坑,记录下来。
timestamp格式
watermark的timestamp格式
[ERROR] Could not execute SQL statement. Reason:
org.apache.flink.table.api.ValidationException: Invalid data type of time field for watermark definition. The field must be of type TIMESTAMP(p) or TIMESTAMP_LTZ