viirya commented on pull request #29089:
URL: https://github.com/apache/spark/pull/29089#issuecomment-658558946


   Oh, this is interesting. I know removing `Sort` before `Repartition` will 
result in different data distribution because `Repartition` uses 
`RoundRobinPartitioning`. Because I think repartition doesn't guarantee 
shuffled data distribution, so I thought it is okay.
   
   Now seems different data distribution causes difference storage output size. 
I think it is because to repartition sorted data using `RoundRobinPartitioning` 
can generate more compact output.


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

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