[
https://issues.apache.org/jira/browse/SPARK-24892?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16553245#comment-16553245
]
Apache Spark commented on SPARK-24892:
--------------------------------------
User 'dbtsai' has created a pull request for this issue:
https://github.com/apache/spark/pull/21850
> 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
> Priority: Major
>
> 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: [email protected]
For additional commands, e-mail: [email protected]