You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "zhengruifeng (JIRA)" <ji...@apache.org> on 2018/07/26 07:38:00 UTC
[jira] [Commented] (SPARK-21436) Take advantage of known partioner
for distinct on RDDs
[ https://issues.apache.org/jira/browse/SPARK-21436?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16558013#comment-16558013 ]
zhengruifeng commented on SPARK-21436:
--------------------------------------
[~holdenk] It looks like that \{distinct} already utilized the known partitioner. \{distinct} calls {{color:#ffc66d}{color:#333333}combineByKeyWithClassTag} internally, and will avoid the shuffle if rdd's partitioner is equal to a hash partitioner with same #partitions.
{color}{color}
{color:#ffc66d}{color:#333333}Or do you mean that we need to expose some API like {distinct(partitioner: {color}{color}Partitioner)} for other kinds of partitioners like \{RangePartitioner}?
> Take advantage of known partioner for distinct on RDDs
> ------------------------------------------------------
>
> Key: SPARK-21436
> URL: https://issues.apache.org/jira/browse/SPARK-21436
> Project: Spark
> Issue Type: Improvement
> Components: Spark Core
> Affects Versions: 2.3.0
> Reporter: holdenk
> Priority: Minor
>
> If we have a known partitioner we should be able to avoid the shuffle.
--
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