Skip to content

Commit

Permalink
enable view test
Browse files Browse the repository at this point in the history
  • Loading branch information
adrian-wang committed Dec 29, 2014
1 parent a3e51cc commit f105f68
Show file tree
Hide file tree
Showing 13 changed files with 61 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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
Expand Down Expand Up @@ -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",
Expand Down
Empty file.
Empty file.
Empty file.
Original file line number Diff line number Diff line change
@@ -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`
Empty file.
Original file line number Diff line number Diff line change
@@ -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`
Empty file.
Empty file.
Empty file.
Empty file.

0 comments on commit f105f68

Please sign in to comment.