hive数据在使用insert into a select xx from b where时被覆盖?

iaqfqrcu  于 2021-06-28  发布在  Hive
关注(0)|答案(1)|浏览(510)

当我使用sql时,配置单元中有两个表:

insert into A partition(a='x1') select * from B where a='x1'.

它会覆盖 partition(a='x1') 表的 A .
为什么这个sql会覆盖数据?

egmofgnx

egmofgnx1#

我自己找到了原因。表名必须简单且仅小写。你可以读读《圣母经》:https://issues.apache.org/jira/browse/hive-3939

相关问题