GitHub user marmbrus opened a pull request:
https://github.com/apache/spark/pull/9334
[SPARK-11377] [SQL] withNewChildren should not convert StructType to Seq
This is minor, but I ran into while writing Datasets and while it wasn't
needed for the final solution, it was super confusing so we should fix it.
Basically we recurse into `Seq` to see if they have children. This breaks
because we don't preserve the original subclass of `Seq` (and `StructType <:<
Seq[StructField]`). Since a struct can never contain children, lets just not
recurse into it.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/marmbrus/spark structMakeCopy
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/9334.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 #9334
----
commit b5c6f821856a728eec0b449e4e821d6db44a2e41
Author: Michael Armbrust <[email protected]>
Date: 2015-10-28T14:24:34Z
[SPARK-11377] [SQL] withNewChildren should not convert StructType to Seq
----
---
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]