GitHub user dbtsai opened a pull request:
https://github.com/apache/spark/pull/21852
[SPARK-24893] [SQL] Remove the entire CaseWhen if all the outputs are
semantic equivalence
## What changes were proposed in this pull request?
Similar to SPARK-24890, if all the outputs of `CaseWhen` are semantic
equivalence, `CaseWhen` can be removed.
## How was this patch tested?
Tests added.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/dbtsai/spark short-circuit-when
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/21852.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 #21852
----
commit dc8de5fec6efc723ce01bcbaf0496c57b62e0ba2
Author: DB Tsai <d_tsai@...>
Date: 2018-07-23T19:15:58Z
remove casewhen if possible
----
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]