LuciferYang commented on code in PR #38422:
URL: https://github.com/apache/spark/pull/38422#discussion_r1016111635


##########
sql/core/src/test/scala/org/apache/spark/sql/DataFrameSuite.scala:
##########
@@ -2322,15 +2322,21 @@ class DataFrameSuite extends QueryTest
   test("SPARK-13774: Check error message for non existent path without globbed 
paths") {
     val uuid = UUID.randomUUID().toString
     val baseDir = Utils.createTempDir()
+    val filePath1 = new File(baseDir, "file").getAbsolutePath
+    val filePath2 = new File(baseDir, "file2").getAbsolutePath
+    val filePath3 = new File(uuid, "file3").getAbsolutePath
     try {
-      val e = intercept[AnalysisException] {
-        spark.read.format("csv").load(
-          new File(baseDir, "file").getAbsolutePath,
-          new File(baseDir, "file2").getAbsolutePath,
-          new File(uuid, "file3").getAbsolutePath,
-          uuid).rdd
-      }
-      assert(e.getMessage.startsWith("Path does not exist"))
+      checkError(
+        exception = intercept[AnalysisException] {
+          spark.read.format("csv").load(
+            filePath1,
+            filePath2,
+            filePath3,
+            uuid).rdd
+        },
+        errorClass = "PATH_NOT_FOUND",
+        parameters = Map("path" -> s"file:$filePath1")

Review Comment:
   seems to be related to the order of path check, the parameters is filePath1, 
but the actual is filePath3 with Scala 2.13



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to