diff options
author | Reynold Xin <rxin@databricks.com> | 2016-01-19 16:14:41 -0800 |
---|---|---|
committer | Reynold Xin <rxin@databricks.com> | 2016-01-19 16:14:41 -0800 |
commit | 3e84ef0a54c53c45d7802cd2fecfa1c223580aee (patch) | |
tree | 9e8fe9e481d64ce42a438e5b7c43c01679c4bf85 /R/pkg | |
parent | f6f7ca9d2ef65da15f42085993e58e618637fad5 (diff) | |
download | spark-3e84ef0a54c53c45d7802cd2fecfa1c223580aee.tar.gz spark-3e84ef0a54c53c45d7802cd2fecfa1c223580aee.tar.bz2 spark-3e84ef0a54c53c45d7802cd2fecfa1c223580aee.zip |
[SPARK-12770][SQL] Implement rules for branch elimination for CaseWhen
The three optimization cases are:
1. If the first branch's condition is a true literal, remove the CaseWhen and use the value from that branch.
2. If a branch's condition is a false or null literal, remove that branch.
3. If only the else branch is left, remove the CaseWhen and use the value from the else branch.
Author: Reynold Xin <rxin@databricks.com>
Closes #10827 from rxin/SPARK-12770.
Diffstat (limited to 'R/pkg')
0 files changed, 0 insertions, 0 deletions