You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (Jira)" <ji...@apache.org> on 2021/05/28 23:23:00 UTC

[jira] [Commented] (SPARK-35560) Remove redundant subexpression evaluation in nested subexpressions

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

Apache Spark commented on SPARK-35560:
--------------------------------------

User 'viirya' has created a pull request for this issue:
https://github.com/apache/spark/pull/32699

> 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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org