← Tutorials/Spark AQE: Adaptive Query Execution Deep DiveAdvanced
▶ 12 min5.7k views
Apache SparkApache SparkNew

Spark AQE: Adaptive Query Execution Deep Dive

AQE rewrites your physical plan at runtime using actual partition statistics. This tutorial walks through each of the three AQE features — partition coalescing, join conversion, and skew join handling — with live Spark UI screenshots.

Animated Explanation
STEP 1 / 5
1

Normally Spark plans the entire query before execution. AQE changes this: after each shuffle stage completes, Spark inspects the actual partition sizes and may re-optimize the remaining stages.

Key Concepts
Runtime plan rewritingShuffle statisticsJoin conversionSkew partition splitting
🎯 You'll Learn

Enable and tune AQE for your production jobs

📋 Prerequisites

Spark query plan basics