Answer Posted / Shakher Chaudhary
Use Coalesce when you want to reduce the number of partitions, especially before writing data to an output format like CSV or Parquet. Use Repartition when you need to change the number of partitions for a specific reason, such as joining data where the join key is evenly distributed across fewer partitions.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers