在Impala中实现CREATE AS SELECT

时间:2013-10-23 03:17:06

标签: cloudera impala

请帮助我了解如何实施CREATE TABLE AS SELECT

简单create table t1 as select * from t2;我可以实现

Create table t1 like t2;
insert into t1 as select * from t2;

但是如何实施create table t1 as select c1,c2,c3 from t2;

有没有办法在impala中实现这个?

1 个答案:

答案 0 :(得分:4)

正如评论中所提到的,从1.2开始,Impala支持CREATE TABLE AS SELECT:documentationJIRA ticket