A join generally needs rows with the same join key to be brought together across partitions, requiring a shuffle. Spark may avoid it for a broadcast join or compatible existing partitioning, but a join remains the listed operation most likely to redistribute data. Filtering, conditional filtering, and dropping columns operate within existing partitions; a union normally combines inputs without key-based repartitioning.
Community Discussion