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

Apache Spark reassigned SPARK-35560:
------------------------------------

    Assignee: L. C. Hsieh  (was: Apache Spark)

> Remove redundant subexpression evaluation in nested subexpressions
> ------------------------------------------------------------------
>
>                 Key: SPARK-35560
>                 URL: https://issues.apache.org/jira/browse/SPARK-35560
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 3.2.0
>            Reporter: L. C. Hsieh
>            Assignee: L. C. Hsieh
>            Priority: Major
>
> In some cases, whole-stage codegen's subexpression elimination will do 
> redundant subexpression evaluation. We should reduce it. For example, if we 
> have two sub-exprs:
> 1. simpleUDF($"id")
> 2. functions.length(simpleUDF($"id"))
> We should only evaluate `simpleUDF($"id")` once, i.e.
> subExpr1 = simpleUDF($"id");
> subExpr2 = functions.length(subExpr1);



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to