作者:广东抱米花_冰月 | 来源:互联网 | 2023-10-16 15:47
报错信息如下:Exceptioninthread“main”org.apache.flink.table.api.ValidationException:Fieldtypesofq
报错信息如下:
Exception in thread “main” org.apache.flink.table.api.ValidationException: Field types of query result and
registered TableSink default_catalog
.default_database
.demo
do not match.
Query result schema: [id: String, aa: Long]
TableSink schema: [id: String, timestamp: Long, temperature: Double]
at org.apache.flink.table.sinks.TableSinkUtils.validateSink(TableSinkUtils.scala:64)atorg.apache.flink.table.planner.StreamPlanner$anonfun2.apply(StreamPlanner.scala:146)atorg.apache.flink.table.planner.StreamPlanner$anonfun$2.apply(StreamPlanner.scala:145)
at scala.Option.map(Option.scala:146)
原因:
查找的结果和要保存数据的结果不同