GitHub user cloud-fan opened a pull request:

    https://github.com/apache/spark/pull/9337

    [SPARK-11379][SQL] ExpressionEncoder can't handle top level primitive type 
correctly

    For inner primitive type(e.g. inside `Product`), we use `schemaFor` to get 
the catalyst type for it, 
https://github.com/apache/spark/blob/master/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/ScalaReflection.scala#L403.
    
    However, for top level primitive type, we use `dataTypeFor`, which is wrong.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/cloud-fan/spark encoder

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/9337.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 #9337
    
----
commit 8b98d038ac2723deb4a261203bed01a614863d39
Author: Wenchen Fan <[email protected]>
Date:   2015-10-28T15:31:44Z

    fix a bug of encoder

----


---
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]

Reply via email to