You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "DB Tsai (JIRA)" <ji...@apache.org> on 2018/07/23 18:37:00 UTC

[jira] [Created] (SPARK-24892) Simplify `CaseWhen` to `If` when there is only one branch

DB Tsai created SPARK-24892:
-------------------------------

             Summary: Simplify `CaseWhen` to `If` when there is only one branch
                 Key: SPARK-24892
                 URL: https://issues.apache.org/jira/browse/SPARK-24892
             Project: Spark
          Issue Type: Improvement
          Components: SQL
    Affects Versions: 2.3.0
            Reporter: DB Tsai


After the rule of removing the unreachable branches, it could be only one branch left. In this situation, `CaseWhen` can be converted to `If` to do further optimization.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org