Exception in thread “main” org.apache.flink.table.api.ValidationException: Field types of query result and registered TableSink myhive.库名.表名 do not match.
1、这个问题出现的原因是因为在通过查询数据插入另一张表的时候,字段类型不符合插入的数据类型,请仔细检查一下字段类型;
2、使用insert into table <table_name> select语句执行数据迁移时,必须保证前后两个表字段数量一致.