1. 问题现象
- flink 1.14.5
- hudi 0.11.1
通过flink cdc同步了一个mysql表到hudi,并且数据compact到了parquet文件,此时通过flink sql去查询该hudi表时报以下异常
10:27:24 WARN split_reader -> NotNullEnforcer(fields=[id]) (1/4)#0 org.apache.flink.runtime.taskmanager.Task - split_reader -> NotNullEnforcer(fields=[id]) (1/4)#0 (e382ae300d3d2034085bc7aba45948e4) switched from RUNNING to FAILED with failure cause: java.lang.ClassCastException: org.apache.flink.table.data.vector.heap.HeapIntVector cannot be cast to org.apache.flink.table.data.vector.ShortColumnVector
at org.apache.flink.table.data.vector.VectorizedColumnBatch.getShort(VectorizedColumnBatch.java:78)
at org.apache.flink.table.data.ColumnarRowData.getShort(C