hive 判断表分区是否存在

来源:互联网 发布:淘宝掌中宝是什么 编辑:程序博客网 时间:2024/04/26 02:50

use db;
alter table table_name add if not exists partition(day=${logdate})
location ‘dir’;

原创粉丝点击