Github user gatorsmile commented on a diff in the pull request:
https://github.com/apache/spark/pull/13965#discussion_r68990242
--- 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 --
nvm. I found the issue. Json, parquet and the other file formats will not
affect the data source API developers. : ) Let me revert the changes.
---
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]