Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Incomplete
-
1.6.0, 2.1.0
-
None
Description
So far, the existing caching mechanisms do not work on dataset operations when using map/filter with lambda functions. For example,
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)
}