在Hive中使用ALTER修改列类型时长餐刚看到如下的错误:
1 2 |
Error: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. Unable to alter table. The following columns have types incompatible with the existing columns in their respective positions : CreateTimestamp (state=08S01,code=1) |
问题在于在Hive中执行ALTER列操作时只能按照如下的强制类型转换规则进行:
转载时请保留出处,违法转载追究到底:进城务工人员小梅 » Hive中列类型修改规则