Hive批量删除历史分区

it2026-03-19  5

批量删除历史分区和数据可以采用如下操作:

-- 删除20180101之前的所有分区 alter table example_table_name drop if exists partition (dt <'20180101');

 

转载于:https://www.cnblogs.com/shujuxiong/p/10132013.html

最新回复(0)