删除表字段会报数据不一致,报错如下
INFO : Executing command(queryId=hive_20190806170220_4bd826b5-21cc-4a31-9fe4-3fa14ada0ede): ALTER TABLE flume.biprod replace columns ( title string comment '影片名称',show_nums int comment '场次',people_nums decimal(20, 1) comment '人次(万)',box_office decimal(20, 2) comment '票房(万)')
INFO : Starting task [Stage-0:DDL] in serial mode
ERROR : FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. Replacing columns cannot drop columns for table flume.biprod. SerDe may be incompatible
INFO : Completed executing command(queryId=hive_20190806170220_4bd826b5-21cc-4a31-9fe4-3fa14ada0ede); Time taken: 0.015 seconds
Error: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. Replacing columns cannot drop columns for table flume.biprod. SerDe may be incompatible (state=42000,code
return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. Replacing columns cSerDe may be incompati
最新推荐文章于 2024-12-01 20:26:58 发布
在尝试通过ALTER TABLE语句删除Hive表字段时遇到错误,错误信息提示SerDe可能不兼容。解决方法包括更改表的存储格式或直接更新元数据中的CD_ID来保持一致性。涉及Hive的DDL任务执行、表结构描述和元数据管理。

最低0.47元/天 解锁文章
733

被折叠的 条评论
为什么被折叠?



