From e7c4e726cfb7840ff466653b0c871c2855b9e081 Mon Sep 17 00:00:00 2001 From: Yin Huai Date: Thu, 19 Jun 2014 15:10:57 -0700 Subject: [PATCH] Fix unit test. --- .../sql/hive/execution/HiveQuerySuite.scala | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveQuerySuite.scala b/sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveQuerySuite.scala index d7966d3e5c085..f216d8b8dd92e 100644 --- a/sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveQuerySuite.scala +++ b/sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveQuerySuite.scala @@ -266,7 +266,8 @@ 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") @@ -274,24 +275,14 @@ class HiveQuerySuite extends HiveComparisonTest { .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")