2016-05-27 35 views
0

配置单元 - 从现有表创建外部表,如果无法完成...是否有解决方法。配置单元 - 从现有表创建外部表

我使用的蜂巢版本是:Hive 1.2.1000.2.4.2.0-258

,我想跑的东西如下查询...

create external table table_1 
stored as orc 
location'wasb://[email protected]/output/table_1/' 
tblproperties ("orc.compress"="SNAPPY") 
as 
select * from table_0 limit 0; 

在cwiki他们作为

解释CTAS有这些限制:

The target table cannot be a partitioned table. 
The target table cannot be an external table. 
The target table cannot be a list bucketing table. 

复制下面的链接。 https://cwiki.apache.org/confluence/display/Hive/LanguageManual+DDL#LanguageManualDDL-CreateTableAsSelect%28CTAS%29

谢谢:-)

+0

你上面的查询运行时得到任何错误? – dheee

回答

0

还有另一种方式来创建一个蜂巢表like关键字

create table target_table like source_table; 
相关问题