[英]How to load a particular partition of a Hive table into another Hive table with no partitions?
HiveTable1
has columns name, email in partition date=12/12/2014
There are other date partitions in the table as well. HiveTable1
列名称为,电子邮件的分区date=12/12/2014
。表中还包含其他日期分区。
HiveTable2
is created with name, email columns. HiveTable2
是使用名称和电子邮件列创建的。
How do I transfer the data from HiveTable1 to HiveTable2? 如何将数据从HiveTable1传输到HiveTable2?
If you just filter on a single value for the partition key then it will only load that partition. 如果仅对分区键的单个值进行过滤,则它将仅加载该分区。
INSERT INTO TABLE HiveTable2
SELECT name, email FROM HiveTable1 WHERE date="12/12/2014";
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.