spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Takeshi Yamamuro (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SPARK-12061) Persist for Map/filter with Lambda Functions don't always read from Cache
Date Fri, 24 Mar 2017 09:31:41 GMT

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

Takeshi Yamamuro updated SPARK-12061:
-------------------------------------
    Affects Version/s: 2.1.0

> Persist for Map/filter with Lambda Functions don't always read from Cache
> -------------------------------------------------------------------------
>
>                 Key: SPARK-12061
>                 URL: https://issues.apache.org/jira/browse/SPARK-12061
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 1.6.0, 2.1.0
>            Reporter: Xiao Li
>
> So far, the existing caching mechanisms do not work on dataset operations when using
map/filter with lambda functions. For example, 
> {code}
>   test("persist and then map/filter with lambda functions") {
>     val f = (i: Int) => i + 1
>     val ds = Seq(1, 2, 3).toDS()
>     val mapped = ds.map(f)
>     mapped.cache()
>     val mapped2 = ds.map(f)
>     assertCached(mapped2)
>   }
> {code}



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

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


Mime
View raw message