[ 
https://issues.apache.org/jira/browse/SPARK-35961?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Wenchen Fan resolved SPARK-35961.
---------------------------------
    Fix Version/s: 3.2.0
       Resolution: Fixed

Issue resolved by pull request 33165
[https://github.com/apache/spark/pull/33165]

> Only use local shuffle reader when REBALANCE_PARTITIONS_BY_NONE without 
> CustomShuffleReaderExec
> -----------------------------------------------------------------------------------------------
>
>                 Key: SPARK-35961
>                 URL: https://issues.apache.org/jira/browse/SPARK-35961
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 3.2.0
>            Reporter: XiDuo You
>            Assignee: XiDuo You
>            Priority: Major
>             Fix For: 3.2.0
>
>
> After [SPARK-35725](https://issues.apache.org/jira/browse/SPARK-35725), we 
> might expand partition if that partition is skewed. So the partition number 
> check `bytesByPartitionId.length == partitionSpecs.size` would be wrong if 
> some partitions are coalesced and some partitions are splitted into smaller.
> Note that, it's unlikely happened in real world since it used RoundRobin.
> Otherhand, after 
> [SPARK-34899](https://issues.apache.org/jira/browse/SPARK-34899), we use 
> origin plan if can not coalesce partitions. So the assuming of that shuffle 
> stage has `CustomShuffleReaderExec` with no effect is always false in 
> `REBALANCE_PARTITIONS_BY_NONE` shuffle origin. That said, if no rule was 
> efficient, there would be no `CustomShuffleReaderExec`.



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

Reply via email to