GitHub user lucarosellini opened a pull request:
https://github.com/apache/spark/pull/6554
[SPARK-4782] Add inferSchema support for RDD[Map[String, Any]]
In this PR we added a generic inferSchema method to allow schema infer for
an RDD of a generic type T for which the user provides a mapping function from
RDD[T] => RDD[Map[String,Any]]
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/keedio/spark SPARK-4782
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/6554.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 #6554
----
commit 65b44fa3219538265055285cee072267af0a7b85
Author: Luca Rosellini <[email protected]>
Date: 2015-06-01T12:22:38Z
[SPARK-4782] Added generic inferSchema method to allow schema infer for an
RDD of a generic type T for which the user provides a mapping function from
RDD[T] => RDD[Map[String,Any]]
----
---
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]