Skip to content
SQLMediumofficialBenchmark eligiblefree

Date dimension repair

fact_sales.date_text mixes ISO, US, and invalid strings. BI expects dim_date.date_key (YYYYMMDD integer). Quarantine unparseable dates; do not delete facts.

FieldDetail
CreatorPipelineArena
Version2.0.0
Time40 min
Scored checks16

Objective

Every parseable fact attaches to dim_date; invalid rows sit in fact_sales_rejected.

#Success condition
1dim_date covers the documented range including fiscal week
2Parseable facts have a valid date_key FK
3Invalid dates are quarantined, not deleted
4No silent NULL date_key on a parseable row
#Visible instruction
1Generate dim_date for the required range.
2Parse known formats explicitly; fail closed on the rest.
3Write rejects instead of dropping facts.
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