GitHub user gatorsmile opened a pull request:
https://github.com/apache/spark/pull/22390
[SPARK-25402][SQL] Null handling in BooleanSimplification
## What changes were proposed in this pull request?
This PR is to fix the null handling in BooleanSimplification. In the rule
BooleanSimplification, there are two cases that do not properly handle null
values. The optimization is not right if either side is null. This PR is to fix
them.
## How was this patch tested?
Added test cases
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/gatorsmile/spark fixBooleanSimplification
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/22390.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 #22390
----
commit cf863bb1cbccea16c6838950a1daa3070fa3b6e3
Author: gatorsmile <gatorsmile@...>
Date: 2018-09-11T07:02:40Z
fix.
----
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]