GitHub user ilganeli opened a pull request:
https://github.com/apache/spark/pull/6686
[SPARK-8056][SQL][WIP] Design an easier way to construct schema for both
Scala and Python
I've added functionality to create new StructType similar to how we add
parameters to a new SparkContext.
I've updated most of the StructType class to make it so the underlying data
store is based off a map of fields instead of the array used to construct it.
This both enables the above functionality and clarifies some semantics of
what's going on internally in terms of how the data is used and also guards
against an issue previously present where one could have duplicates in the
schema that would cause problems.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/ilganeli/spark SPARK-8056B
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/6686.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 #6686
----
commit fdf7e9fe1d40789498dbec57edae61279d769325
Author: Ilya Ganelin <[email protected]>
Date: 2015-06-06T15:49:16Z
[SPARK-8056] Created add methods to facilitate building new StructType
objects.
----
---
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]