1、分区别没有数据写入空分区
alter table 表名 add if not exists partition(pt=’${hiveconf:runDt}’);
举例:
ALTER TABLE dw_zhangxin.dw_newuser_source_detail_d_incr_flag add if not exists partition(pt=‘2022-03-15’);

1、分区别没有数据写入空分区
alter table 表名 add if not exists partition(pt=’${hiveconf:runDt}’);
举例:
ALTER TABLE dw_zhangxin.dw_newuser_source_detail_d_incr_flag add if not exists partition(pt=‘2022-03-15’);