QuestionQ127

VerifiedTroubleshooting and Tuning Apache Spark DataFrame API Applications.

Which Spark property configures whether DataFrame partitions that fall below a minimum size threshold are automatically coalesced into larger partitions during a shuffle?

Explanation

spark.sql.adaptive.coalescePartitions.enabled enables Adaptive Query Execution to coalesce contiguous shuffle partitions according to the target size, reducing excessive small tasks. It operates when Adaptive Query Execution is enabled; the minimum resulting partition size is controlled separately by spark.sql.adaptive.coalescePartitions.minPartitionSize.

Learn more

Community Discussion

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