You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sean Owen (JIRA)" <ji...@apache.org> on 2016/02/23 15:20:18 UTC

[jira] [Commented] (SPARK-13453) Including groupKey in the signature of aggregateByKey

    [ https://issues.apache.org/jira/browse/SPARK-13453?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15158927#comment-15158927 ] 

Sean Owen commented on SPARK-13453:
-----------------------------------

It's not supposed to. You have access to the key after aggregation and can further transform.

> Including groupKey in the signature of aggregateByKey
> -----------------------------------------------------
>
>                 Key: SPARK-13453
>                 URL: https://issues.apache.org/jira/browse/SPARK-13453
>             Project: Spark
>          Issue Type: Improvement
>            Reporter: Anton Anastasov
>            Priority: Minor
>
> The signature of the aggregateByKey method over PairRDDs does not provide access to the actual key. My proposal is to create a new overloaded method that includes the key. This should not be hard.
> There is a workaround possible currently -- we can just map the PairRDD[K, V] to PairRDD[K, (K, V)], but this seems convoluted.
> Let me know what you think, and if I should go ahead with a pull request.



--
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