insert overwrite table partition_table partition(pt_d='20240114') select field1, field2, .... from another table;
这种方式只会将20240114分区中的数据删除,然后往20240114分区中插入数据,其他分区的数据不会受到影响。
Hive中 insert into 和 insert overwrite的区别