Skip to content
SQLHardofficialBenchmark eligiblepro

Late-arriving facts

An order from last month arrives today. dim_customer has already Type-2 changed. The fact must use the surrogate key that was current on the order date (Kimball late-arriving fact), not the current row.

FieldDetail
CreatorPipelineArena
Version2.0.0
Time70 min
Scored checks17

Objective

fact_orders.customer_sk matches the dim_customer version where valid_from <= order_date < valid_to.

#Success condition
1Late fact uses event-time surrogate, not is_current
2On-time facts still match current versions
3Unknown natural keys get a documented inferred member, not a dropped fact
4Re-run does not duplicate fact_orders.order_id
#Visible instruction
1Join dim_customer on natural key AND order_date inside the validity window.
2Do not join only WHERE is_current.
3If the member is missing, insert the inferred placeholder described in README.md.
Scoring checks the leftover tables or files, replay safety, and seeded variations — not the exact syntax you used. Check implementation is never shown to participants.

Signed-in workspace: Open in app