[
https://issues.apache.org/jira/browse/SPARK-2278?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14060158#comment-14060158
]
Sean Owen commented on SPARK-2278:
----------------------------------
Isn't this exactly what the first argument to groupBy and sortBy does? You
define grouping and sorting on a transformation of the key instead of the key.
It's not precisely what you mean but has the same effect. Maybe more
importantly it matches Scala's collections API.
> groupBy & groupByKey should support custom comparator
> -----------------------------------------------------
>
> Key: SPARK-2278
> URL: https://issues.apache.org/jira/browse/SPARK-2278
> Project: Spark
> Issue Type: New Feature
> Components: Java API
> Affects Versions: 1.0.0
> Reporter: Hans Uhlig
>
> To maintain parity with MapReduce you should be able to specify a custom key
> equality function in groupBy/groupByKey similar to sortByKey.
--
This message was sent by Atlassian JIRA
(v6.2#6252)