We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29fd5a8 commit d35a685Copy full SHA for d35a685
sql/hive/src/test/scala/org/apache/spark/sql/sources/HadoopFsRelationTest.scala
@@ -336,9 +336,10 @@ abstract class HadoopFsRelationTest extends QueryTest with SQLTestUtils with Tes
336
test("saveAsTable()/load() - non-partitioned table - ErrorIfExists") {
337
withTable("t") {
338
sql(s"CREATE TABLE t(i INT) USING $dataSourceName")
339
- intercept[AnalysisException] {
+ val msg = intercept[AnalysisException] {
340
testDF.write.format(dataSourceName).mode(SaveMode.ErrorIfExists).saveAsTable("t")
341
- }
+ }.getMessage
342
+ assert(msg.contains("Table `t` already exists"))
343
}
344
345
0 commit comments