[ 
https://issues.apache.org/jira/browse/SPARK-42815?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17700753#comment-17700753
 ] 

Apache Spark commented on SPARK-42815:
--------------------------------------

User 'ulysses-you' has created a pull request for this issue:
https://github.com/apache/spark/pull/40446

> Subexpression elimination support shortcut conditional expression
> -----------------------------------------------------------------
>
>                 Key: SPARK-42815
>                 URL: https://issues.apache.org/jira/browse/SPARK-42815
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 3.5.0
>            Reporter: XiDuo You
>            Priority: Minor
>
> The subexpression in conditional expression may not need to eval even if it 
> appears more than once.
> e.g., `if(or(a, and(b, b)))`, the expression `b` would be skipped if `a` is 
> true.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to