GitHub user gatorsmile opened a pull request:
https://github.com/apache/spark/pull/13933
[SPARK-16236] [SQL] Add Path Option back to Load API in DataFrameReader
#### What changes were proposed in this pull request?
@koertkuipers identified the PR https://github.com/apache/spark/pull/13727/
changed the behavior of `load` API. After the change, the `load` API does not
add the value of `path` into the `options`. Thank you!
This PR is to add the option `path` back to `load()` API in
`DataFrameReader`, if and only if users specify one and only one `path` in the
`load` API. For example, users can see the `path` option after the following
API call,
```Scala
spark.read
.format("org.apache.spark.sql.test")
.load("/test")
```
#### How was this patch tested?
Added test cases.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/gatorsmile/spark optionPath
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/13933.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #13933
----
commit 15eb5288f6d439297b446ac81b266756a2a5a3dd
Author: gatorsmile <[email protected]>
Date: 2016-06-27T23:50:59Z
fix
----
---
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]