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 · expert
Version2.0.0
Time40 min
Credits3
Completion0% · 0.0 rating
Hidden tests5

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.
Hidden tests score the final tables or files, not the exact syntax you used. Test implementation is never shown to participants.

Signed-in workspace: Open in app