[
https://issues.apache.org/jira/browse/SPARK-62292?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Hyukjin Kwon reassigned SPARK-62292:
------------------------------------
Assignee: Hyukjin Kwon
> Free a replaced plan of a DataFrame of the Python client, keep its session
> object in derived DataFrames, and close the other gaps of SPARK-62218 to
> PySpark
> -----------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: SPARK-62292
> URL: https://issues.apache.org/jira/browse/SPARK-62292
> Project: Spark
> Issue Type: Bug
> Components: Connect
> Affects Versions: 5.0.0
> Reporter: Hyukjin Kwon
> Assignee: Hyukjin Kwon
> Priority: Major
>
> Follow-ups of SPARK-62218, from the independent review of its PR against
> pyspark-client 4.3.0:
> (1) the identity cache of a DataFrame keeps a replaced Python _plan (and its
> UDFs) alive until the DataFrame is freed;
> (2) 14 methods (the aggregations of groupBy, pivot, applyInPandas, cogroup,
> mapInPandas, crosstab, freqItems, replace, na.*) give their result the
> session itself as _session, where PySpark keeps the DataFrame's session
> object;
> (3) the Column lookups of a DataFrame whose _plan is not its own build that
> plan, where PySpark reads _plan._plan_id;
> (4) toLocalIterator() reads _plan and _session at the call, not at the first
> next();
> (5) a second __init__ of a DataFrame in use raises "Already borrowed" and
> resets its isLocal and semanticHash caches;
> (6) the docs;
> (7) the cost of live DataFrames with the garbage collector on (gc.collect()
> over 100k: 68-79 -> 94-97 ms; building 100k kept DataFrames: 350 -> 740 ms).
> Make them behave as PySpark's.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]