GitHub user dbtsai opened a pull request:
https://github.com/apache/spark/pull/21904
[SPARK-24953] [SQL] Prune a branch in `CaseWhen` if previously seen
## What changes were proposed in this pull request?
If a condition in a branch is previously seen, this branch can be pruned.
If the outputs of two adjacent branches are the same, two branches can be
combined.
## 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 prune-case-when-branch
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/21904.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 #21904
----
commit 4ac3d1efdec05d56f5051901ca209b67b23be28b
Author: DB Tsai <d_tsai@...>
Date: 2018-07-27T23:47:02Z
prune casewhen branch
----
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]