[ https://issues.apache.org/jira/browse/SPARK-32276?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dongjoon Hyun reopened SPARK-32276: ----------------------------------- > 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 > Assignee: Anton Okolnychyi > Priority: Major > Fix For: 3.1.0 > > > 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-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org