开发者社区> 问答> 正文

大家遇到过Flink mysql-cdc 声明源表,字段为时间类型,但是值为空,日志报错

我在使用阿里云Flink的完全托管产品 ,使用Flinksql 声明mysql-cdc源表,其中有时间字段数据为空。导致运行的时候报错。请问需要做什么配置吗 报错如下 java.lang.NumberFormatException: For input string: "" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) ~[?:1.8.0_102] at java.lang.Integer.parseInt(Integer.java:592) ~[?:1.8.0_102] at java.lang.Integer.parseInt(Integer.java:615) ~[?:1.8.0_102] at com.alibaba.ververica.cdc.debezium.table.RowDataDebeziumDeserializeSchema.convertToInt(RowDataDebeziumDeserializeSchema.java:227) ~[?:?] at com.alibaba.ververica.cdc.debezium.table.RowDataDebeziumDeserializeSchema.lambda$wrapIntoNullableConverter$7b91dc26$1(RowDataDebeziumDeserializeSchema.java:390) ~[?:?] at com.alibaba.ververica.cdc.debezium.table.RowDataDebeziumDeserializeSchema.convertField(RowDataDebeziumDeserializeSchema.java:380) ~[?:?] at com.alibaba.ververica.cdc.debezium.table.RowDataDebeziumDeserializeSchema.lambda$createRowConverter$508c5858$1(RowDataDebeziumDeserializeSchema.java:366) ~[?:?] at com.alibaba.ververica.cdc.debezium.table.RowDataDebeziumDeserializeSchema.lambda$wrapIntoNullableConverter$7b91dc26$1(RowDataDebeziumDeserializeSchema.java:390) ~[?:?] at com.alibaba.ververica.cdc.debezium.table.RowDataDebeziumDeserializeSchema.extractAfterRow(RowDataDebeziumDeserializeSchema.java:126) ~[?:?] at com.alibaba.ververica.cdc.debezium.table.RowDataDebeziumDeserializeSchema.deserialize(RowDataDebeziumDeserializeSchema.java:101) ~[?:?] at com.alibaba.ververica.cdc.debezium.internal.DebeziumChangeConsumer.handleBatch(DebeziumChangeConsumer.java:114) ~[?:?]

展开
收起
mackiller 2021-04-09 18:10:19 2185 0
0 条回答
写回答
取消 提交回答
问答排行榜
最热
最新

相关电子书

更多
Flink CDC Meetup PPT - 龚中强 立即下载
Flink CDC Meetup PPT - 王赫 立即下载
Flink CDC Meetup PPT - 覃立辉 立即下载

相关镜像