Github user nchammas commented on the issue:
https://github.com/apache/spark/pull/14579
Thanks @MLnick for taking this on and for breaking down what you've found
so far.
I took a look through
[`contextlib`](https://docs.python.org/3/library/contextlib.html) for
inspiration, and I wonder if the source code for
[`closing()`](https://docs.python.org/3/library/contextlib.html#contextlib.closing)
offers a template we can follow that would let `persist()` return an
RDD/DataFrame instance with the correct magic methods, without having to modify
the class.
Have you taken a look at that?
---
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]