Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
将数据加载到 hive 内部表时会发生什么?数据是否会从现有位置复制到新位置?
它不会被复制。在加载期间,无论内部表指向何处,数据都将写入那里。它还取决于插入语句 - 插入与插入覆盖。
使用检查位置
desc extended table <tablename>;
如果要更改位置,请执行
alter table <Tablename> set location 'new location';