diff options
author | gatorsmile <gatorsmile@gmail.com> | 2016-06-28 15:32:45 -0700 |
---|---|---|
committer | Reynold Xin <rxin@databricks.com> | 2016-06-28 15:32:45 -0700 |
commit | 25520e976275e0d1e3bf9c73128ef4dec4618568 (patch) | |
tree | 319efec3e93ab2cc27edfe426d051ca6750879c1 /sql/catalyst/src/main | |
parent | 35438fb0ad3bcda5c5a3a0ccde1a620699d012db (diff) | |
download | spark-25520e976275e0d1e3bf9c73128ef4dec4618568.tar.gz spark-25520e976275e0d1e3bf9c73128ef4dec4618568.tar.bz2 spark-25520e976275e0d1e3bf9c73128ef4dec4618568.zip |
[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("parquet")
.load("/test")
```
#### How was this patch tested?
Added test cases.
Author: gatorsmile <gatorsmile@gmail.com>
Closes #13933 from gatorsmile/optionPath.
Diffstat (limited to 'sql/catalyst/src/main')
0 files changed, 0 insertions, 0 deletions