动态删除impala中的分区

问题描述 投票:1回答:1

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"

因此,它将根据select查询的结果添加多个分区。但是,在删除分区时似乎并不等效。在那儿 ?您必须显式指定要删除的分区。

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
1个回答
0
投票

遗憾的是,没有办法按照您在示例中指定的方式动态删除分区。

© www.soinside.com 2019 - 2024. All rights reserved.