QuestionQ163

VerifiedUsing Spark SQL

A developer observes that every post-shuffle partition in a dataset is smaller than the value configured for spark.sql.adaptive.maxShuffledHashJoinLocalMapThreshold.

Which join type will Adaptive Query Execution (AQE) select in this situation?

Explanation

AQE selects a shuffled hash join when all post-shuffle partitions are within spark.sql.adaptive.maxShuffledHashJoinLocalMapThreshold, because each partition is small enough for a local hash map. This optimization replaces the sort-merge join choice when the configuration’s eligibility conditions are met.

Learn more

Community Discussion

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