spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Reynold Xin (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SPARK-12770) Implement rules for branch elimination for CaseWhen in SimplifyConditionals
Date Tue, 12 Jan 2016 08:02:39 GMT

     [ https://issues.apache.org/jira/browse/SPARK-12770?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Reynold Xin updated SPARK-12770:
--------------------------------
    Summary: Implement rules for branch elimination for CaseWhen in SimplifyConditionals 
(was: Implement rules for removing unnecessary branches for CaseWhen in SimplifyConditionals)

> Implement rules for branch elimination for CaseWhen in SimplifyConditionals
> ---------------------------------------------------------------------------
>
>                 Key: SPARK-12770
>                 URL: https://issues.apache.org/jira/browse/SPARK-12770
>             Project: Spark
>          Issue Type: Sub-task
>          Components: Optimizer, SQL
>            Reporter: Reynold Xin
>
> There are a few things we can do:
> 1. If a branch is a true literal, remove the CaseWhen and use the value from that branch.
> 2. If a branch is a literal that is false or null, remove that branch.
> 3. If only the else branch is left, remove the CaseWhen and use the value from the else
branch.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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


Mime
View raw message