You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (Jira)" <ji...@apache.org> on 2020/06/10 07:40:00 UTC

[jira] [Resolved] (SPARK-31945) Make more cache enable for Python UDFs.

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

Hyukjin Kwon resolved SPARK-31945.
----------------------------------
    Fix Version/s: 3.1.0
       Resolution: Fixed

Issue resolved by pull request 28774
[https://github.com/apache/spark/pull/28774]

> Make more cache enable for Python UDFs.
> ---------------------------------------
>
>                 Key: SPARK-31945
>                 URL: https://issues.apache.org/jira/browse/SPARK-31945
>             Project: Spark
>          Issue Type: Improvement
>          Components: PySpark
>    Affects Versions: 3.0.0
>            Reporter: Takuya Ueshin
>            Assignee: Takuya Ueshin
>            Priority: Major
>             Fix For: 3.1.0
>
>
> Currently the cache manager doesn't use the cache for {{udf}} if the {{udf}} is created again even if the functions is the same.
> {code:python}
> >>> func = lambda x: x
> >>> df = spark.range(1)
> >>> df.select(udf(func)("id")).cache()
> >>> df.select(udf(func)("id")).explain()
> == Physical Plan ==
> *(2) Project [pythonUDF0#14 AS <lambda>(id)#12]
> +- BatchEvalPython [<lambda>(id#0L)], [pythonUDF0#14]
>  +- *(1) Range (0, 1, step=1, splits=12)
> {code}
>  



--
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