Sign in to view content

Sign in to view this lesson and continue learning.

Description

In this lab, Zach explains how Spark join types and shuffle behavior affect performance, using Spark UI, query plans, and Delta table experiments. It covers ingesting approximately 200,000 rows from Polygon/Massive into a Delta table, then examines an intraday self-join for best and worst trading days for Apple, including how broadcast joins can avoid shuffle but window functions with order by introduce additional sort and shuffle. He also compares repartition versus coalesce and different partition strategies on a 38 million row tweets dataset, showing how partition counts and defaults like auto change runtime, and discusses skew versus shuffle with adaptive query execution. He concludes with guidance on when repartitioning is likely unnecessary for well-modeled Delta inputs and when it can help for less structured sources.