[SQL] enable view test

This is a follow up of #3396 , just add a test to white list.

Author: Daoyuan Wang <daoyuan.wang@intel.com>

Closes #3826 from adrian-wang/viewtest and squashes the following commits:

f105f68 [Daoyuan Wang] enable view test
This commit is contained in:
Daoyuan Wang 2014-12-30 11:29:13 -08:00 committed by Michael Armbrust
parent 480bd1d2ed
commit 94d60b7021
13 changed files with 61 additions and 1 deletions

View file

@ -101,6 +101,7 @@ class HiveCompatibilitySuite extends HiveQueryFileTest with BeforeAndAfter {
"describe_comment_nonascii",
"create_merge_compressed",
"create_view",
"create_view_partitioned",
"database_location",
"database_properties",
@ -110,7 +111,6 @@ class HiveCompatibilitySuite extends HiveQueryFileTest with BeforeAndAfter {
// Weird DDL differences result in failures on jenkins.
"create_like2",
"create_view_translate",
"partitions_json",
// This test is totally fine except that it includes wrong queries and expects errors, but error
@ -349,6 +349,7 @@ class HiveCompatibilitySuite extends HiveQueryFileTest with BeforeAndAfter {
"create_nested_type",
"create_skewed_table1",
"create_struct_table",
"create_view_translate",
"cross_join",
"cross_product_check_1",
"cross_product_check_2",

View file

@ -0,0 +1,27 @@
# col_name data_type comment
key string
# Detailed Table Information
Database: default
Owner: animal
CreateTime: Mon Dec 29 00:57:55 PST 2014
LastAccessTime: UNKNOWN
Protect Mode: None
Retention: 0
Table Type: VIRTUAL_VIEW
Table Parameters:
transient_lastDdlTime 1419843475
# Storage Information
SerDe Library: null
InputFormat: org.apache.hadoop.mapred.SequenceFileInputFormat
OutputFormat: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
Compressed: No
Num Buckets: -1
Bucket Columns: []
Sort Columns: []
# View Information
View Original Text: select cast(key as string) from src
View Expanded Text: select cast(`src`.`key` as string) from `default`.`src`

View file

@ -0,0 +1,32 @@
# col_name data_type comment
key int
value string
# Detailed Table Information
Database: default
Owner: animal
CreateTime: Mon Dec 29 00:57:55 PST 2014
LastAccessTime: UNKNOWN
Protect Mode: None
Retention: 0
Table Type: VIRTUAL_VIEW
Table Parameters:
transient_lastDdlTime 1419843475
# Storage Information
SerDe Library: null
InputFormat: org.apache.hadoop.mapred.SequenceFileInputFormat
OutputFormat: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
Compressed: No
Num Buckets: -1
Bucket Columns: []
Sort Columns: []
# View Information
View Original Text: select key, value from (
select key, value from src
) a
View Expanded Text: select key, value from (
select `src`.`key`, `src`.`value` from `default`.`src`
) `a`