Interview practice question
Join with a small lookup table is slow
Data Engineering · Spark · Beginner
A job joins a 2 TB transactions table with a 5 MB currency table, and it takes 40 minutes. What do you check?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Check if Spark used a sort-merge join instead of a broadcast join.
- A 5 MB table should be broadcast.
- Missing stats or a disabled threshold can prevent auto-broadcast.
- Force with broadcast() hint.
- Verify with explain or the Spark UI.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.