【发布时间】:2017-08-05 00:06:32
【问题描述】:
我在 Hive 中有一个空的分区表,我正在尝试命名一个列以及表中列的顺序:
> describe formatted test_hive;
col_name 数据类型注释
col1 日期 col2 字符串 col3 字符串 abc 十进制(11,2)
分区信息
col_name 数据类型注释
mth_year 字符串
尝试将 abc 重命名为 xyz 并将其移动到 col1 之后,但是当我运行时
alter table test_hive partition(mth_year) CHANGE abc xyz DECIMAL(11,2) AFTER col1;
但出现错误:
FAILED: SemanticException [Error 10006]: Partition not found {proc_mth_year=null}
我们可以对空的分区表进行更改吗?
【问题讨论】: