hive-从现有表创建外部表

hfwmuf9z  于 2021-06-29  发布在  Hive
关注(0)|答案(1)|浏览(330)

配置单元-从现有表创建外部表,如果无法完成。。。附近有工作吗。
我使用的配置单元版本是: Hive 1.2.1000.2.4.2.0-258 我想运行的查询如下所示。。。

create external table table_1
stored as orc
location'wasb://vnextdev@1vnextstorage.blob.core.windows.net/output/table_1/'
tblproperties ("orc.compress"="SNAPPY")
as 
select * from table_0 limit 0;

在cwiki他们解释为
CTA有以下限制:

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-CreateTableAssetSelect%28ctas%29
谢谢:-)

ndasle7k

ndasle7k1#

还有另一种方法可以使用 like 关键字

create table target_table like source_table;

相关问题