Skip to content

Commit 0e9b3d2

Browse files
committed
fix error message
1 parent cdd900d commit 0e9b3d2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -906,7 +906,7 @@ class MetastoreDataSourcesSuite extends QueryTest with SQLTestUtils with TestHiv
906906
val e = intercept[AnalysisException] {
907907
createDF(10, 19).write.mode(SaveMode.Append).format("orc").saveAsTable("appendOrcToParquet")
908908
}
909-
assert(e.getMessage.contains("The file format of the existing table `appendOrcToParquet` " +
909+
assert(e.getMessage.contains("The file format of the existing table appendOrcToParquet " +
910910
"is `org.apache.spark.sql.execution.datasources.parquet.ParquetFileFormat`. " +
911911
"It doesn't match the specified format `orc`"))
912912
}
@@ -917,7 +917,7 @@ class MetastoreDataSourcesSuite extends QueryTest with SQLTestUtils with TestHiv
917917
createDF(10, 19).write.mode(SaveMode.Append).format("parquet")
918918
.saveAsTable("appendParquetToJson")
919919
}
920-
assert(e.getMessage.contains("The file format of the existing table `appendParquetToJson` " +
920+
assert(e.getMessage.contains("The file format of the existing table appendParquetToJson " +
921921
"is `org.apache.spark.sql.execution.datasources.json.JsonFileFormat`. " +
922922
"It doesn't match the specified format `parquet`"))
923923
}
@@ -928,7 +928,7 @@ class MetastoreDataSourcesSuite extends QueryTest with SQLTestUtils with TestHiv
928928
createDF(10, 19).write.mode(SaveMode.Append).format("text")
929929
.saveAsTable("appendTextToJson")
930930
}
931-
assert(e.getMessage.contains("The file format of the existing table `appendTextToJson` is " +
931+
assert(e.getMessage.contains("The file format of the existing table appendTextToJson is " +
932932
"`org.apache.spark.sql.execution.datasources.json.JsonFileFormat`. " +
933933
"It doesn't match the specified format `text`"))
934934
}

0 commit comments

Comments
 (0)