Github user marmbrus commented on the pull request:
https://github.com/apache/spark/pull/9889#issuecomment-159473750
I wouldn't block merging an initial version of this feature on this, but it
would also be nice if we could support the following (this might be hard
though):
```scala
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)
```
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]