wangyum opened a new pull request #30898: URL: https://github.com/apache/spark/pull/30898
### What changes were proposed in this pull request? This pr simplify `CaseWhen` when only one branch and one clause is null and another is boolean. This simplify similar to [SPARK-32721](https://issues.apache.org/jira/browse/SPARK-32721). Expression | After simplify -- | -- case when cond then null else false end | and(cond, null) case when cond then null else true end | or(not(cond), null) case when cond then false else null end | and(not(cond), null) case when cond then false end | and(not(cond), null) case when cond then true else null end | or(cond, null) case when cond then true end | or(cond, null) ### Why are the changes needed? Improve query performance. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Unit test. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
