coalesce(n) vs repartition(n) — which is accurate?
Select an answer to reveal the explanation.
Short Explanation and Infographic
repartition shuffles freely; coalesce mostly shrinks partitions cheaper.
Full explanation below image
Full Explanation
Choose based on whether you need a full balanced reshuffle or a cheaper reduction.