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

@@ -11,7 +11,7 @@ use insert_permutation_test
create table perm_nopart(int_col1 int, string_col string, int_col2 int);
create table perm_part(int_col1 int, string_col string) partitioned by (p1 int, p2 string);
create table parquet_part(int_col1 int, string_col string)
partitioned by (p1 int, p2 string) stored as parquetfile;
partitioned by (p1 int, p2 string) stored as parquet;
---- RESULTS
====
---- QUERY