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

Herman van Hovell closed SPARK-20106.
-------------------------------------
    Resolution: Not A Problem

> Nonlazy caching of DataFrame after orderBy/sort
> -----------------------------------------------
>
>                 Key: SPARK-20106
>                 URL: https://issues.apache.org/jira/browse/SPARK-20106
>             Project: Spark
>          Issue Type: Bug
>          Components: PySpark, SQL
>    Affects Versions: 2.0.1, 2.1.0
>            Reporter: Richard Liebscher
>            Priority: Minor
>
> Calling {{cache}} or {{persist}} after a call to {{orderBy}} or {{sortBy}} on 
> a DataFrame runs not lazy and creates a Spark job:
> {code}spark.range(1, 1000).orderBy("id").cache(){code}
> Other operations do not generate a job when cached:
> {code}spark.range(1, 1000).repartition(2).cache()
> spark.range(1, 1000).groupBy("id").agg(fn.min("id")).cache()
> spark.range(1, 1000).cache(){code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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

Reply via email to