配置单元 - 从现有表创建外部表,如果无法完成...是否有解决方法。配置单元 - 从现有表创建外部表
我使用的蜂巢版本是: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
谢谢:-)
===========解决方案如下:
还有另一种方式来创建一个蜂巢表like
关键字
create table target_table like source_table;