QuestionQ23

VerifiedDeveloping Apache Spark™ DataFrame/DataSet API Applications

Which of the following operations can return a new DataFrame from the DataFrame storesDF without triggering a shuffle?

Explanation

DataFrame.coalesce(1) reduces the number of partitions without a shuffle by default, using a narrow dependency. It returns a new DataFrame.

Learn more

Community Discussion

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