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

    https://github.com/apache/spark/pull/13965#discussion_r68984206
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/DataFrameReader.scala ---
    @@ -244,7 +244,7 @@ class DataFrameReader private[sql](sparkSession: 
SparkSession) extends Logging {
        */
       def json(path: String): DataFrame = {
         // This method ensures that calls that explicit need single argument 
works, see SPARK-16009
    -    json(Seq(path): _*)
    +    option("path", path).json(Seq.empty: _*)
    --- End diff --
    
    @gatorsmile setting `path` or `paths` are both fine for json, parquet, and 
other file formats. See 
https://github.com/apache/spark/blob/master/sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/DataSource.scala#L312
    
    You don't need to change this file.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

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

Reply via email to