Github user ouyangxiaochen commented on a diff in the pull request:

    https://github.com/apache/spark/pull/21881#discussion_r206377644
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/execution/command/tables.scala ---
    @@ -337,7 +337,11 @@ case class LoadDataCommand(
               new File(file.getAbsolutePath).exists()
             }
             if (!exists) {
    -          throw new AnalysisException(s"LOAD DATA input path does not 
exist: $path")
    +          // If user have no permission to access the given input path, 
`File.exists()` return false
    +          // , `LOAD DATA input path does not exist` can confuse users.
    +          throw new AnalysisException(s"LOAD DATA input path does not 
exist: `$path` or current " +
    --- End diff --
    
    OK, Thanks!


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to