GitHub user ilganeli opened a pull request:
https://github.com/apache/spark/pull/6678
[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-8056
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/6678.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 #6678
----
commit 22fbb6d57b0f54a7d86ae8caae886439c7db5600
Author: Ilya Ganelin <[email protected]>
Date: 2015-06-05T23:06:02Z
Comitting initial revision of StructType code
----
---
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]