wangyum opened a new pull request, #36790:
URL: https://github.com/apache/spark/pull/36790

   ### What changes were proposed in this pull request?
   
   Optimize `ReplaceCTERefWithRepartition` to support coalesce partitions. For 
example:
   
   Before this PR | After this PR
   -- | --
   
![image](https://user-images.githubusercontent.com/5399861/172430973-feb5de0c-373b-4a66-be49-d25648dcd24a.png)
 | 
![image](https://user-images.githubusercontent.com/5399861/172431034-5c5aa7c4-1cc5-4922-8fb0-a703cd6e9fec.png)
   
   ### Why are the changes needed?
   
   Reduce the overhead of shuffle as much as possible.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No.
   
   ### How was this patch tested?
   
   Unit test.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to