Skip to content

Commit d35a685

Browse files
committed
update
1 parent 29fd5a8 commit d35a685

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

sql/hive/src/test/scala/org/apache/spark/sql/sources/HadoopFsRelationTest.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,9 +336,10 @@ abstract class HadoopFsRelationTest extends QueryTest with SQLTestUtils with Tes
336336
test("saveAsTable()/load() - non-partitioned table - ErrorIfExists") {
337337
withTable("t") {
338338
sql(s"CREATE TABLE t(i INT) USING $dataSourceName")
339-
intercept[AnalysisException] {
339+
val msg = intercept[AnalysisException] {
340340
testDF.write.format(dataSourceName).mode(SaveMode.ErrorIfExists).saveAsTable("t")
341-
}
341+
}.getMessage
342+
assert(msg.contains("Table `t` already exists"))
342343
}
343344
}
344345

0 commit comments

Comments
 (0)