spark-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gatorsmile <...@git.apache.org>
Subject [GitHub] spark pull request #19823: [SPARK-22601][SQL] Data load is getting displayed...
Date Sun, 26 Nov 2017 20:39:54 GMT
Github user gatorsmile commented on a diff in the pull request:

    https://github.com/apache/spark/pull/19823#discussion_r153081151
  
    --- Diff: sql/core/src/main/scala/org/apache/spark/sql/execution/command/tables.scala
---
    @@ -341,6 +341,12 @@ case class LoadDataCommand(
           } else {
             val uri = new URI(path)
             if (uri.getScheme() != null && uri.getAuthority() != null) {
    +          val hadoopConf = sparkSession.sessionState.newHadoopConf()
    +          val srcPath = new Path(path)
    +          val fs = srcPath.getFileSystem(hadoopConf)
    +          if(!fs.exists(srcPath)) {
    +             throw new AnalysisException(s"LOAD DATA input path does not exist: $path")
    --- End diff --
    
    two space indents. 


---

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


Mime
View raw message