You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2015/07/14 06:24:14 UTC
[jira] [Commented] (SPARK-9021) Have pyspark's RDD.aggregate() make
a deepcopy of zeroValue for each partition
[ https://issues.apache.org/jira/browse/SPARK-9021?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14625789#comment-14625789 ]
Apache Spark commented on SPARK-9021:
-------------------------------------
User 'njhwang' has created a pull request for this issue:
https://github.com/apache/spark/pull/7378
> Have pyspark's RDD.aggregate() make a deepcopy of zeroValue for each partition
> ------------------------------------------------------------------------------
>
> Key: SPARK-9021
> URL: https://issues.apache.org/jira/browse/SPARK-9021
> Project: Spark
> Issue Type: Bug
> Components: PySpark
> Affects Versions: 1.4.0
> Environment: Ubuntu 14.04 LTS
> Reporter: Nicholas Hwang
>
> Please see pull request for more information.
> I initially "patched" this arguably unexpected behavior by serializing zeroValue, but ended up mimicking the deepcopy approach used by other RDD methods. I also contemplated having fold/aggregate accept "zero value generator functions" instead of an actual object, but that obviously changes the API.
> Looking forward to hearing back and/or being educated on how I'm inappropriately using this functionality (relatively new to Spark and functional programming). Thanks!
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org