【发布时间】:2018-03-11 09:14:24
【问题描述】:
Impala 允许动态添加分区如下。
insert into table1 partition (part_col1="merged",part_col2,part_col3)
select col1,col2,col3,part_col2,part_col3 from table2 where
col="SomeValue"
因此,它将根据选择查询的结果添加多个分区。但是在删除分区时,似乎并不相同。有没有 ?您必须明确指定要删除的分区。
alter table table1 drop
partition(part_col1="A",part_col2="B",part_col3="C")
我不能只说这样的话
alter table table1 drop partition(part_col1="A",part_col2,part_col3)
【问题讨论】:
标签: partitioning impala