dairui130

导航

hive 添加和删除分区

命令如下:

增加分区

alter table my_partition_test_table if not exists add partition (p_hour='2017113003', p_city='573', p_loctype='MHA');

删除分区

ALTER TABLE my_partition_test_table DROP IF EXISTS PARTITION (p_loctype='MHA');

 

posted on 2019-04-15 18:58  dairui130  阅读(591)  评论(0编辑  收藏  举报