Hyukjin Kwon created SPARK-61042:
------------------------------------
Summary: Return the DataFrame itself from persist, cache and
unpersist in the Python client as PySpark does
Key: SPARK-61042
URL: https://issues.apache.org/jira/browse/SPARK-61042
Project: Spark
Issue Type: Bug
Components: Connect
Affects Versions: connect-rust-4.3.0
Reporter: Hyukjin Kwon
In PySpark Connect, {{df.persist(storageLevel)}}, {{df.cache()}} and
{{df.unpersist(blocking)}} return the DataFrame itself: {{df.persist() is df}}
is {{True}}.
The Rust-backed Python client returns a new DataFrame object of the same plan,
so {{df.persist() is df}} is {{False}}. Return the DataFrame itself as PySpark
does.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]