QuestionQ49

VerifiedApache Spark Architecture and Components

Which of these operations is most likely to cause a shuffle?

Explanation

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.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!