You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (JIRA)" <ji...@apache.org> on 2018/08/29 07:02:00 UTC

[jira] [Assigned] (SPARK-23030) Decrease memory consumption with toPandas() collection using Arrow

     [ https://issues.apache.org/jira/browse/SPARK-23030?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hyukjin Kwon reassigned SPARK-23030:
------------------------------------

    Assignee: Bryan Cutler

> Decrease memory consumption with toPandas() collection using Arrow
> ------------------------------------------------------------------
>
>                 Key: SPARK-23030
>                 URL: https://issues.apache.org/jira/browse/SPARK-23030
>             Project: Spark
>          Issue Type: Sub-task
>          Components: PySpark, SQL
>    Affects Versions: 2.3.0
>            Reporter: Bryan Cutler
>            Assignee: Bryan Cutler
>            Priority: Major
>
> Currently with Arrow enabled, calling {{toPandas()}} results in a collection of all partitions in the JVM in the form of batches of Arrow file format.  Once collected in the JVM, they are served to the Python driver process. 
> I believe using the Arrow stream format can help to optimize this and reduce memory consumption in the JVM by only loading one record batch at a time before sending it to Python.  This might also reduce the latency between making the initial call in Python and receiving the first batch of records.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org