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 2020/07/13 17:03:00 UTC

[jira] [Commented] (SPARK-32276) Remove redundant sorts before repartition nodes

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

Apache Spark commented on SPARK-32276:
--------------------------------------

User 'aokolnychyi' has created a pull request for this issue:
https://github.com/apache/spark/pull/29089

> Remove redundant sorts before repartition nodes
> -----------------------------------------------
>
>                 Key: SPARK-32276
>                 URL: https://issues.apache.org/jira/browse/SPARK-32276
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 3.1.0
>            Reporter: Anton Okolnychyi
>            Priority: Major
>
> I think ourĀ {{EliminateSorts}} rule can be extended further to remove sorts before repartition, repartitionByExpression and coalesce nodes. Independently of whether we do a shuffle or not, each repartition operation will change the ordering and distribution of data.
> That's why we should be able to rewrite {{Repartition -> Sort -> Scan}} as {{Repartition -> Scan}}.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org