GitHub user koertkuipers opened a pull request:
https://github.com/apache/spark/pull/17660
[SPARK-20359][SQL] catch NPE in EliminateOuterJoin optimization
catch NPE in EliminateOuterJoin and add test in DataFrameSuite to confirm
NPE is no longer thrown
## What changes were proposed in this pull request?
catch possible NPE in this line
```val v = boundE.eval(emptyRow)```
and conclude the optimization can not be performed.
## How was this patch tested?
Added test in DataFrameSuite that failed before this fix and now succeeds.
Note that a test in catalyst project would be better but i am unsure how to do
this. Will look into it now.
Please review http://spark.apache.org/contributing.html before opening a
pull request.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/tresata/spark
feat-catch-npe-in-eliminate-outer-join
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/17660.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 #17660
----
commit 7a759cca3fb302d55b5758e3e8cb85deca460112
Author: Koert Kuipers <[email protected]>
Date: 2017-04-17T00:11:00Z
catch NPE in EliminateOuterJoin and add test in DataFrameSuite to confirm
NPE is no longer thrown
----
---
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]