FailedChanges

Summary

  1. [SPARK-25402][SQL] Null handling in BooleanSimplification (details)
Commit db9c041790ac3a0b883d0783cbdd12ab459758c2 by wenchen
[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
Closes #22390 from gatorsmile/fixBooleanSimplification.
Authored-by: gatorsmile <gatorsmile@gmail.com> Signed-off-by: Wenchen
Fan <wenchen@databricks.com>
(cherry picked from commit 79cc59718fdf7785bdc37a26bb8df4c6151114a6)
Signed-off-by: Wenchen Fan <wenchen@databricks.com>
The file was modifiedsql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/expressions.scala (diff)
The file was modifiedsql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/optimizer/BooleanSimplificationSuite.scala (diff)
The file was modifiedsql/core/src/test/scala/org/apache/spark/sql/DataFrameSuite.scala (diff)