Interview practice question
One task running for hours in a join
Data Engineering · Spark · Intermediate
A join stage has 999 tasks finishing in 2 minutes and 1 task running for 2 hours. How do you fix it?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Classic data skew on the join key.
- Find the hot key with groupBy count.
- Check if AQE skew join is enabled.
- Handle null or dummy keys separately.
- Salt the hot key or broadcast the smaller side.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.