MaxGekk commented on code in PR #38422: URL: https://github.com/apache/spark/pull/38422#discussion_r1014596462
########## sql/core/src/test/scala/org/apache/spark/sql/DataFrameSuite.scala: ########## @@ -2344,7 +2344,7 @@ class DataFrameSuite extends QueryTest val e = intercept[AnalysisException] { spark.read.format("text").load(s"$nonExistentBasePath/*") } - assert(e.getMessage.startsWith("Path does not exist")) + assert(e.getMessage.startsWith("[PATH_NOT_FOUND] Path does not exist")) Review Comment: Use `checkError` ########## sql/core/src/test/scala/org/apache/spark/sql/DataFrameSuite.scala: ########## @@ -2330,7 +2330,7 @@ class DataFrameSuite extends QueryTest new File(uuid, "file3").getAbsolutePath, uuid).rdd } - assert(e.getMessage.startsWith("Path does not exist")) + assert(e.getMessage.startsWith("[PATH_NOT_FOUND] Path does not exist")) Review Comment: Please, use `checkError` here. ########## sql/core/src/test/scala/org/apache/spark/sql/DataFrameSuite.scala: ########## @@ -2354,7 +2354,7 @@ class DataFrameSuite extends QueryTest val e1 = intercept[AnalysisException] { spark.read.json(s"${baseDir.getAbsolutePath}/*/*-xyz.json").rdd } - assert(e1.getMessage.startsWith("Path does not exist")) + assert(e1.getMessage.startsWith("[PATH_NOT_FOUND] Path does not exist")) Review Comment: ditto -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org