遇到的问题:Hive空表覆写插入清空分区,失败

308 阅读1分钟

问题记录

insert overwrite table a select * from b where dt=20210809;

查询插入,若查询为空,将不会覆盖数据

所以也不能用来清空表对应的分区