Skip to content

Commit 0fe835d

Browse files
author
bomeng
committed
fix the tests failure
1 parent 358ac0d commit 0fe835d

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveOperatorQueryableSuite.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ class HiveOperatorQueryableSuite extends QueryTest with TestHiveSingleton {
4141
checkAnswer(
4242
sql("select * from mydesc"),
4343
Seq(
44-
Row("key", "int", null),
45-
Row("value", "string", null)))
44+
Row("key", "int", ""),
45+
Row("value", "string", "")))
4646

4747
checkAnswer(
4848
sql("select col_name, data_type, comment from mydesc"),
4949
Seq(
50-
Row("key", "int", null),
51-
Row("value", "string", null)))
50+
Row("key", "int", ""),
51+
Row("value", "string", "")))
5252
}
5353
}

sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveQuerySuite.scala

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -798,12 +798,12 @@ class HiveQuerySuite extends HiveComparisonTest with BeforeAndAfter {
798798
// Describe a table
799799
assertResult(
800800
Array(
801-
Row("key", "int", null),
802-
Row("value", "string", null),
803-
Row("dt", "string", null),
801+
Row("key", "int", ""),
802+
Row("value", "string", ""),
803+
Row("dt", "string", ""),
804804
Row("# Partition Information", "", ""),
805805
Row("# col_name", "data_type", "comment"),
806-
Row("dt", "string", null))
806+
Row("dt", "string", ""))
807807
) {
808808
sql("DESCRIBE test_describe_commands1")
809809
.select('col_name, 'data_type, 'comment)
@@ -813,12 +813,12 @@ class HiveQuerySuite extends HiveComparisonTest with BeforeAndAfter {
813813
// Describe a table with a fully qualified table name
814814
assertResult(
815815
Array(
816-
Row("key", "int", null),
817-
Row("value", "string", null),
818-
Row("dt", "string", null),
816+
Row("key", "int", ""),
817+
Row("value", "string", ""),
818+
Row("dt", "string", ""),
819819
Row("# Partition Information", "", ""),
820820
Row("# col_name", "data_type", "comment"),
821-
Row("dt", "string", null))
821+
Row("dt", "string", ""))
822822
) {
823823
sql("DESCRIBE default.test_describe_commands1")
824824
.select('col_name, 'data_type, 'comment)

0 commit comments

Comments
 (0)