Databricks broadcast joins: when the memo beats the meeting (and when it kills a task)

Databricks broadcast joins: when the memo beats the meeting (and when it kills a task)

Two engineers on the same team join the same big orders table to the same small lookup table. Same cluster, same data, one line of code different. Sarah's finishes in the time it takes to get a coffee. Mike's dies, and the error isn't about the data at all. A task ran out of memory building a hash map.


Broadcast joins get passed around as a tip instead of a model: small table equals fast, flip the switch when a join runs long. But the mechanism in almost every write-up is years out of date, and the size Spark checks is not the size that has to fit in memory.


In this episode:

- How to explain broadcast versus shuffle joins at standup, in one sentence, without a whiteboard

- What actually happens on a current Databricks runtime when a join broadcasts, and why the popular explanation stopped being true

- Why the size estimate Spark trusts is not the size that lands, and where to read the real payload

- What adaptive query execution rescues you from, and the two places its hands are tied

- The question to ask before you add a broadcast hint, and the failure signature that tells you a broadcast is what broke


This episode is for Databricks data engineers who write joins every week and treat the broadcast hint as a speed switch. Whether you're mid-level and tired of guessing why one join flies and an identical one falls over, or senior and about to be asked in an interview why Spark chose a sort merge join, you'll walk away able to predict the call before you run the query.


---

Helping 18,000+ Databricks data engineers become seniors: interview like seniors, execute like seniors, think like seniors.


Follow The Databricks Data Engineer for new episodes every week.


LinkedIn: linkedin.com/in/jrlasak

Newsletter: dataengineer.wiki


#DataEngineering #Databricks #DataEngineer #CareerGrowth #ApacheSpark #DeltaLake1

Det här avsnittet är hämtat från ett öppet RSS-flöde och publiceras inte av Podme. Det kan innehålla reklam.

Avsnitt(27)

Can You Reach Senior Databricks Engineer Without Ever Leading an Architecture Review?

Can You Reach Senior Databricks Engineer Without Ever Leading an Architecture Review?

Sam is four years into a Databricks role, up for senior this cycle. Merged pull requests on the ingestion layer. The nightly job he rescued at three in the morning when the orders table stopped landin...

28 Sep 11min

Why Databricks serverless exists, and which of your jobs should stay on classic clusters

Why Databricks serverless exists, and which of your jobs should stay on classic clusters

Open the workspace. Start a cluster. Get coffee. Come back, and sometimes it's ready. If you've been doing this a few years you can feel that wait in your shoulders, and it's the least interesting par...

21 Sep 12min

How Databricks engineers lose the final round (and the 4 places it happens)

How Databricks engineers lose the final round (and the 4 places it happens)

You cleared the recruiter screen. You cleared the Databricks technical round, and cleared it well. Then the final round, then the email that says strong candidate, tough decision. You go back looking ...

14 Sep 10min

The real reason your Databricks week never got simpler - it isn't the lakehouse

The real reason your Databricks week never got simpler - it isn't the lakehouse

Your org finished the migration. Two systems became one. The nightly copy nobody wanted to own is gone, and so is the quarterly meeting where finance and the data science team each showed up with a re...

7 Sep 11min

The Databricks incident where the most senior engineer never touched the keyboard

The Databricks incident where the most senior engineer never touched the keyboard

Thursday, just after two in the afternoon. The first message doesn't come from an alert, it comes from a person in revenue operations: the biggest region jumped overnight and nobody sold anything new....

31 Aug 11min

9 Databricks decisions that reveal your real seniority (and one that only looks senior)

9 Databricks decisions that reveal your real seniority (and one that only looks senior)

Three in the morning. The nightly job that loads the orders table died halfway. Half the tasks are green, and the rerun button is right there. What you do in the next ten seconds says more about your ...

24 Aug 11min

The Databricks job market in 2026: there are two of them, and only one answers

The Databricks job market in 2026: there are two of them, and only one answers

One engineer tells you hiring is back and recruiters are warm again. The next one is sixty applications deep and hearing nothing. Same month, same platform, sometimes the same city.That sounds like no...

17 Aug 11min

Populärt inom Teknik

natets-morka-sida
uppgang-och-fall
elbilsveckan
bilar-med-sladd
market-makers
rss-laddstationen-med-elbilen-i-sverige
skogsforum-podcast
rss-en-ai-till-kaffet
rss-elektrikerpodden
rss-technokratin
rss-ai-med-jonas-benjamin
rss-uppgang-och-fall
rss-sakerhetspodcasten
rss-veckans-ai
rss-snacka-om-ai
bli-saker-podden
developers-mer-an-bara-kod
rss-powerboat-sverige-podcast
rss-it-sakerhetspodden
rss-fabriken-2