GitHub user liancheng opened a pull request:

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

    [SPARK-12478][SQL] Bugfix: Dataset fields of product types can't be null

    When creating extractors for product types (i.e. case classes and tuples), 
a null check is missing, thus we always assume input product values are 
non-null.
    
    This PR adds a null check in the extractor expression for product types. 
The null check is stripped off for top level product fields, which are mapped 
to the outermost `Row`s, since they can't be null.
    
    Thanks @cloud-fan for helping investigating this issue!

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

    $ git pull https://github.com/liancheng/spark 
spark-12478.top-level-null-field

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

    https://github.com/apache/spark/pull/10431.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 #10431
    
----
commit af0b368f80890153e39729abeefb28ae4df21e39
Author: Cheng Lian <[email protected]>
Date:   2015-12-22T12:01:50Z

    Fixes SPARK-12478

----


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