GitHub user cloud-fan opened a pull request:

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

    [SPARK-15140][SPARK-15441][SQL][WIP] support null object in encoder

    ## What changes were proposed in this pull request?
    
    Currently we can't encoder top level null object into internal row, it 
throws NPE in 1.6 and returns incorrect result in 2.0.
    
    The root cause is: Spark SQL doesn't allow row to be null, only its columns 
can be null. This is different from objects, object itself can be null, and its 
fields can also be null.
    
    This PR tries to resolve this fundamental problem by adding a hidden column 
when serialize object to row, to indicate if the object is null or not.
    
    ## How was this patch tested?
    
    TODO


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

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

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

    https://github.com/apache/spark/pull/13322.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 #13322
    
----
commit d7369dd363439e4d91d77c15f386b7eede34c389
Author: Wenchen Fan <[email protected]>
Date:   2016-05-25T20:57:20Z

    support null object in 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