QuestionQ250

VerifiedTroubleshooting and Tuning Apache Spark DataFrame API Applications.

A data engineer has been reviewing a scheduled Spark application that has begun running slowly in its most recent executions. On inspecting the query plan, the engineer sees that Adaptive Query Execution (AQE) is no longer changing one join operation from a sort-merge join to a broadcast join, resulting in extra shuffling in the Spark job.

What accounts for this change in the application's behavior?

Explanation

AQE converts a sort-merge join to a broadcast hash join only when runtime statistics show that a join side is smaller than the adaptive broadcast join threshold. When the smaller table grows beyond that configured maximum size, it is no longer eligible for broadcasting, so Spark retains the sort-merge join and its shuffle. Apache Spark Performance Tuning

Learn more

Community Discussion

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