BrainTrust Investment Lab › Band 3 — Loading (Delivering to the Kimball STAR)
BrainTrust Investment Lab

SS14 — Surrogate Key Pipeline

← RETURN

Band 3 — Loading (Delivering to the Kimball STAR) · book 475-477 · grain: one fact table per walk sheet

The last gate before any fact lands: every natural key must exchange for a real dimension key. No match, no silent orphan — the row is caught at the door, and referential integrity holds by construction, not by an audit after the fact.

completed
0 of 1
running now
fact_price
completedrunningawaiting its turn · owedfailedexcluded
fact_price↻rank 1 · walking · 9 step(s) certified

The contract — what each step must produce

#steppagewhat the book requires
2dimensions first, alwaysp.476'To preserve referential integrity, always complete the updating of the dimension tables first. In that way, the dimension tables are always the…
3every natural key resolves -- at the right VERSIONp.476'select the surrogate key that aligns with the historical context of the fact row using the current row indicator or begin and end effect dates'
4the failures are fed back, never droppedp.476'you need to feed these failures back to the responsible ETL process for resolution'
5the duplicate row decisionp.477'This is an example of a data quality problem appropriate for a traditional structure data quality screen, as discussed in subsystem 4... write an…
6the fact row keeps only surrogatesp.477'Don't keep the natural key in the fact row -- the fact table needs to contain only the surrogate key.'