GitHub user HyukjinKwon opened a pull request:
https://github.com/apache/spark/pull/11262
[SPARK-13381][SQL] Support for loading CSV with a single function call
https://issues.apache.org/jira/browse/SPARK-13381
This PR adds the support to load CSV data directly by a single call.
Three functions are added to load them.
1. Load csv data from `paths`
2. Load csv data from `RDD[String]`
3. Load csv data from `JavaRDD[String]`
Also, I corrected this to refer all paths rather than the first path in
schema inference, which JSON datasource dose.
Several unitests were added for each functionality.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/HyukjinKwon/spark SPARK-13381
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/11262.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 #11262
----
commit fd2507ccfa147e80dea78d8db2948e7afec530db
Author: hyukjinkwon <[email protected]>
Date: 2016-02-19T07:31:08Z
Add an interface to load CSV directly by a single function call.
----
---
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]