diff options
author | Reynold Xin <rxin@databricks.com> | 2016-02-04 22:43:44 -0800 |
---|---|---|
committer | Reynold Xin <rxin@databricks.com> | 2016-02-04 22:43:44 -0800 |
commit | 82d84ff2dd3efb3bda20b529f09a4022586fb722 (patch) | |
tree | 8b1baccb2121e8c220e8d1c149de7c04ea3f4d9c /docker/README.md | |
parent | 352102ed0b7be8c335553d7e0389fd7ce83f5fbf (diff) | |
download | spark-82d84ff2dd3efb3bda20b529f09a4022586fb722.tar.gz spark-82d84ff2dd3efb3bda20b529f09a4022586fb722.tar.bz2 spark-82d84ff2dd3efb3bda20b529f09a4022586fb722.zip |
[SPARK-13187][SQL] Add boolean/long/double options in DataFrameReader/Writer
This patch adds option function for boolean, long, and double types. This makes it slightly easier for Spark users to specify options without turning them into strings. Using the JSON data source as an example.
Before this patch:
```scala
sqlContext.read.option("primitivesAsString", "true").json("/path/to/json")
```
After this patch:
Before this patch:
```scala
sqlContext.read.option("primitivesAsString", true).json("/path/to/json")
```
Author: Reynold Xin <rxin@databricks.com>
Closes #11072 from rxin/SPARK-13187.
Diffstat (limited to 'docker/README.md')
0 files changed, 0 insertions, 0 deletions