GitHub user cloud-fan opened a pull request:

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

    [SPARK-15140][SQL] make the semantics of null input object for encoder clear

    ## What changes were proposed in this pull request?
    
    For input object of non-flat type, we can't encode it to row if it's null, 
as Spark SQL doesn't allow row to be null, only its columns can be null.
    
    This PR explicitly add this constraint and throw exception if users break 
it.
    
    ## How was this patch tested?
    
    several new tests


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

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

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

    https://github.com/apache/spark/pull/13469.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 #13469
    
----
commit f5463282d9a2bd33860ccef63ce8db7b9c8c5fcc
Author: Wenchen Fan <[email protected]>
Date:   2016-06-02T16:56:27Z

    make the semantics of null input object for encoder clear

----


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