QuestionQ254

VerifiedTroubleshooting and Tuning Apache Spark DataFrame API Applications.

Which of the following operations is least likely to cause a shuffle?

Explanation

Filtering evaluates a predicate independently within each existing partition, so it is normally a narrow transformation and does not redistribute records between executors. By contrast, global ordering, duplicate removal, set intersection, and many joins require records to be co-located or globally arranged, which commonly requires a shuffle. Spark documents DataFrame.filter as filtering rows according to a condition.

Learn more

Community Discussion

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