You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Wenchen Fan (Jira)" <ji...@apache.org> on 2021/09/29 08:33:00 UTC
[jira] [Resolved] (SPARK-34980) Support coalesce partition through
union
[ https://issues.apache.org/jira/browse/SPARK-34980?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wenchen Fan resolved SPARK-34980.
---------------------------------
Fix Version/s: 3.3.0
Resolution: Fixed
Issue resolved by pull request 32084
[https://github.com/apache/spark/pull/32084]
> Support coalesce partition through union
> ----------------------------------------
>
> Key: SPARK-34980
> URL: https://issues.apache.org/jira/browse/SPARK-34980
> Project: Spark
> Issue Type: Sub-task
> Components: SQL
> Affects Versions: 3.2.0
> Reporter: XiDuo You
> Priority: Minor
> Fix For: 3.3.0
>
>
> The rule `CoalesceShufflePartitions` can only coalesce paritition if
> * leaf node is ShuffleQueryStage
> * all shuffle have same partition number
> With `Union`, it might break the assumption. Let's say we have such plan
> {code:java}
> Union
> HashAggregate
> ShuffleQueryStage
> FileScan
> {code}
> `CoalesceShufflePartitions` can not optimize it and the result partition would be `shuffle partition + FileScan partition` which can be quite lagre.
> It's better to support partial optimize with `Union`.
--
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