【Hive】删除分区

hive删除分区需要用alter语句

alter table table_name drop if exists partition(par_col=col_name)

tips: par_col为分区列名,colname为需要删除分区的具体名

e.g. 删除date=20190909分区数据

alter table data_test drop if exists partition(date=20190909)

  

posted @ 2019-10-11 10:50  fanrucong  阅读(20525)  评论(0编辑  收藏  举报