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:
Lenni Kuff
2013-12-05 08:09:33 -08:00
committed by Henry Robinson
parent 9d71dd3d0c
commit 76fa3b2ded
11 changed files with 42 additions and 37 deletions

View File

@@ -137,20 +137,20 @@ STORED AS TEXTFILE
LOCATION '$$location_uri$$'
====
---- CREATE_TABLE
# testing with parquetfile specified
# testing with parquet specified
CREATE TABLE test6 (
year INT,
month INT,
id INT COMMENT 'Add a comment'
)
STORED AS PARQUETFILE
STORED AS PARQUET
---- RESULTS
CREATE TABLE show_create_table_test_db.test6 (
year INT,
month INT,
id INT COMMENT 'Add a comment'
)
STORED AS PARQUETFILE
STORED AS PARQUET
LOCATION '$$location_uri$$'
====
---- CREATE_TABLE