ulysses you created SPARK-29912:
-----------------------------------

             Summary: Pruning shuffle exchange when input and output both are 
one partition
                 Key: SPARK-29912
                 URL: https://issues.apache.org/jira/browse/SPARK-29912
             Project: Spark
          Issue Type: Improvement
          Components: SQL
    Affects Versions: 3.0.0
            Reporter: ulysses you


It is meaningless to do  `repartition(1)` or `coalesce(1)` when a plan child 
just have one partition.
Now, we can not get the output numPartitions during logic plan, so the issue 
pruning the operation in physical plan.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to