Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SQL] enable view test #3826

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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`
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`