Type TIMESTAMP(3) of table field ‘onSellTime‘ does not match with the physical type TIMESTAMP(6)
生活随笔
收集整理的這篇文章主要介紹了
Type TIMESTAMP(3) of table field ‘onSellTime‘ does not match with the physical type TIMESTAMP(6)
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
完整報錯如下:
[ERROR] Could not execute SQL statement. Reason:
org.apache.flink.table.api.ValidationException: Type TIMESTAMP(3) of table field 'onSellTime' does not match with the physical type TIMESTAMP(6) of the 'onSellTime' field of the TableSource return type.
原因:
?
| timestamp的設定 | 寬度 |
| flink的timestamp | 3 |
| mysql的timestamp | 6 |
?
解決方案:
重新建mysql表
create table tmall_item
(
? ? itemID varchar(32) not null,
? ? itemType varchar(32) not null,
? ? onSellTime TIMESTAMP(3) not null,
? ? price Double not null
);
?
總結
以上是生活随笔為你收集整理的Type TIMESTAMP(3) of table field ‘onSellTime‘ does not match with the physical type TIMESTAMP(6)的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: SAP中的ALE, IDOC
- 下一篇: 分区partition是否只保存一部分数