[
https://issues.apache.org/jira/browse/SPARK-48445?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Hyukjin Kwon resolved SPARK-48445.
----------------------------------
Fix Version/s: 4.0.0
Resolution: Fixed
Issue resolved by pull request 46780
[https://github.com/apache/spark/pull/46780]
> Don't inline UDFs with non-cheap children in CollapseProject
> ------------------------------------------------------------
>
> Key: SPARK-48445
> URL: https://issues.apache.org/jira/browse/SPARK-48445
> Project: Spark
> Issue Type: Improvement
> Components: SQL
> Affects Versions: 3.5.1
> Reporter: Kelvin Jiang
> Assignee: Kelvin Jiang
> Priority: Major
> Labels: pull-request-available
> Fix For: 4.0.0
>
>
> Because UDFs (and certain other expressions) are considered cheap by
> CollapseProject.isCheap, they are inlined and potentially duplicated (which
> is ok, because rules like ExtractPythonUDFs will de-duplicate them). However,
> if the UDFs contain other non-cheap expressions, those will also be
> duplicated and can potentially cause performance regressions.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]