mirror of
https://github.com/apache/impala.git
synced 2026-01-03 06:00:52 -05:00
Update DDL to support 'STORED AS PARQUET' and 'STORED AS AVRO' syntax
This change updates our DDL syntax support to allow for using 'STORED AS PARQUET' as well as 'STORED AS PARQUETFILE'. Moving forward we should prefer the new syntax, but continue to support the old. I made the same change for 'AVROFILE', but since we have not yet documented the 'AVROFILE' syntax I left out support for the old syntax. Change-Id: I10c73a71a94ee488c9ae205485777b58ab8957c9 Reviewed-on: http://gerrit.ent.cloudera.com:8080/1053 Reviewed-by: Marcel Kornacker <marcel@cloudera.com> Tested-by: jenkins
This commit is contained in:
committed by
Henry Robinson
parent
9d71dd3d0c
commit
76fa3b2ded
@@ -152,7 +152,7 @@ STRING
|
||||
---- QUERY
|
||||
# CREATE TABLE LIKE on partitioned table
|
||||
create table alltypes_test like functional_seq_snap.alltypes
|
||||
stored as parquetfile
|
||||
stored as parquet
|
||||
---- RESULTS
|
||||
====
|
||||
---- QUERY
|
||||
@@ -254,7 +254,7 @@ INT, STRING
|
||||
====
|
||||
---- QUERY
|
||||
# Ensure that a table can be created using CTAS
|
||||
create table ctas_join stored as parquetfile as
|
||||
create table ctas_join stored as parquet as
|
||||
select j.*, a.int_col, 1*2
|
||||
from functional.jointbl j join functional_seq_snap.alltypes a
|
||||
on (j.alltypes_id=a.id)
|
||||
@@ -295,7 +295,7 @@ BIGINT, STRING, INT, INT, INT, BIGINT
|
||||
====
|
||||
---- QUERY
|
||||
# Since the table already exists, the second CTAS should be a no-op
|
||||
create table if not exists ctas_join stored as parquetfile as
|
||||
create table if not exists ctas_join stored as parquet as
|
||||
select j.*, a.int_col, 1*2
|
||||
from functional.jointbl j join functional_seq_snap.alltypes a
|
||||
on (j.alltypes_id=a.id) limit 1
|
||||
|
||||
Reference in New Issue
Block a user