Skip to content

Commit

Permalink
Fix unit test.
Browse files Browse the repository at this point in the history
  • Loading branch information
yhuai committed Jun 19, 2014
1 parent 656b068 commit e7c4e72
Showing 1 changed file with 4 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -266,32 +266,23 @@ class HiveQuerySuite extends HiveComparisonTest {
Array("key", "int", null),
Array("value", "string", null),
Array("dt", "string", null),
Array("# Partition Information", null, null),
Array("# Partition Information", "", ""),
Array("# col_name", "data_type", "comment"),
Array("dt", "string", null))
) {
hql("DESCRIBE test_describe_commands1")
.select('col_name, 'data_type, 'comment)
.collect()
}

// Describe a table with keyword FORMATTED
// We only
assertResult(6) {
hql("DESCRIBE FORMATTED test_describe_commands1").count()
}

// Describe a table
assertResult(6) {
hql("DESCRIBE EXTENDED test_describe_commands1").count()
}

// Describe a table with a fully qualified table name
assertResult(
Array(
Array("key", "int", null),
Array("value", "string", null),
Array("dt", "string", null),
Array("# Partition Information", null, null),
Array("# Partition Information", "", ""),
Array("# col_name", "data_type", "comment"),
Array("dt", "string", null))
) {
hql("DESCRIBE default.test_describe_commands1")
Expand Down

0 comments on commit e7c4e72

Please sign in to comment.