Skip to content

Commit 4e1b6a0

Browse files
author
zuotingbing
committed
Fix test case
1 parent bf1b4ec commit 4e1b6a0

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

sql/hive/src/test/scala/org/apache/spark/sql/hive/InsertIntoHiveTableSuite.scala

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -501,13 +501,8 @@ class InsertIntoHiveTableSuite extends QueryTest with TestHiveSingleton with Bef
501501
|under the table directory.""".stripMargin) {
502502

503503
withTable("test_table") {
504-
spark.range(1).write.saveAsTable("test_table")
505504

506-
// Make sure the table has also been updated.
507-
checkAnswer(
508-
sql("SELECT * FROM test_table"),
509-
Row(0)
510-
)
505+
sql("CREATE TABLE test_table (key int)")
511506

512507
// Set hive.exec.stagingdir under the table directory without start with ".".
513508
sql("set hive.exec.stagingdir=./test")

0 commit comments

Comments
 (0)