Interview practice question
Fact arrives before its SCD2 dimension change
Data Engineering · SQL · Experienced
An order is loaded today with yesterday's date, but the customer's segment change effective yesterday arrives only tomorrow. How do you keep historical joins correct?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Late dimension changes make earlier joins use the old version.
- Don't store the dimension attribute on the fact permanently if it can change late.
- Reprocess facts within a lookback window when dimension changes arrive.
- Or resolve the dimension at query time with point-in-time join.
- Monitor how late dimension changes typically arrive.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.