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

Sean Owen resolved SPARK-9875.
------------------------------
    Resolution: Not A Problem

> Do not evaluate foreach and foreachPartition with count
> -------------------------------------------------------
>
>                 Key: SPARK-9875
>                 URL: https://issues.apache.org/jira/browse/SPARK-9875
>             Project: Spark
>          Issue Type: Improvement
>          Components: PySpark
>            Reporter: Zoltán Zvara
>            Priority: Minor
>
> It is evident, that the summation inside count will result in an overhead, 
> which would be nice to remove from the current execution.
> {{self.mapPartitions(func).count()  # Force evaluation}} @{{rdd.py}}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to