A nightly job got 13× slower. Read the physical plan and the Spark UI to find out why before touching a config.
Yesterday's release only “tidied up” the date filter, and the nightly revenue job now takes 41 minutes instead of 3. Same cluster (16 executors × 4 cores), same data.
Don't reach for configs yet. Spark tells you exactly what it ran: the physical plan (decided before anything runs) and the Spark UI (what actually happened, task by task). Most slow jobs explain themselves once you can read both.
# before: orders.filter(F.col("dt") == "2025-06-01")
daily = (orders
.filter(F.to_date("order_ts") == "2025-06-01")
.join(customers, "customer_id")
.groupBy("country")
.agg(F.sum("amount").alias("revenue")))
daily.write.mode("overwrite").parquet("s3://lake/marts/revenue/")Reach the last step for the run summary: the key takeaways from this lesson.