GitHub user clockfly opened a pull request:
https://github.com/apache/spark/pull/14474
[SPARK-16853][SQL] fixes encoder error in DataSet typed select
## What changes were proposed in this pull request?
For DataSet typed select:
```
def select[U1: Encoder](c1: TypedColumn[T, U1]): Dataset[U1]
```
If type T is a case class or a tuple class that is not atomic, the
resulting logical plan's schema will mismatch with `Dataset[T]` encoder's
schema, which will cause encoder error and throw AnalysisException.
## How was this patch tested?
Unit test.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/clockfly/spark SPARK-16853
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/14474.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 #14474
----
commit 2b2c1d60ea1bdc8178a839d1453778cd9e9b135f
Author: Sean Zhong <[email protected]>
Date: 2016-08-03T01:57:59Z
fix SPARK-16853
----
---
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]