The engineer's eye
Lineage as a transit map
Lineage tools draw hairballs: boxes, arrows, and a force layout that puts two tables near each other for reasons nobody can state. Harry Beck had the same problem with the Underground and solved it by throwing geography away. Lineage never had any geography to throw away. So here is one warehouse drawn his way: source systems as lines, tables as stations, conformed tables as interchanges.
Click fct_sales: it sits at the end of lines with tables upstream. Then click in Zone 1:
The table map
Each line is a source system and runs through every table its data reaches. A tick is a station on one line; a white capsule is an interchange where lines meet. Hover for details; click a station to light its upstream and downstream; click empty space to clear.
One column, end to end
Table lineage overstates. A station on the CRM line only means some table upstream came from CRM, not that any of its columns did. At table level of the facts sit on the CRM line. Trace their columns and . The other CRM attributes stop at dim_customer or earlier and reach a report only through the join. The strip map below follows a single column the same way a carriage strip map follows one route.
Column strip map
Pick a Gold column to trace it back to the Bronze columns it came from, or a Bronze column to trace it forward. Tracks wear the color of the source the data originated in; a capsule is a column built from more than one source.
Notes
- Beck, 1933. An engineering draughtsman redrew the Underground as a diagram: straight lines, 45 and 90 degree turns only, stations evenly spaced, the crowded centre given more room than the suburbs. Riders need to know what connects to what and where to change, not how far apart things are. A lineage graph is the same question with no distances at all, so topology is the only honest thing to draw. Force layouts invent a geography and then let you read meaning into it.
- What the form reveals. Which sources reach which Gold tables, where they converge, which stations carry the most traffic, and the dead ends: a Bronze terminus with no onward service is a table you pay to land every night and nobody reads.
- What it hides. Transformations, volumes and timing (the heartbeat page has those). Where tracks of one color merge on the approach to a station, the drawing says the line arrives; it does not say through which branch. That is a junction, not a claim. Click the station and you get the exact set.
- Pushback: the stations were placed by hand. The 42 stations sit on a grid chosen by eye, as Beck's did; only the tracks are routed by code. Hand placement stops scaling somewhere past a hundred tables, and that is the real limit of the form. Past it, stop drawing the network and draw the trace: one column, one route, as in the strip map.
- Pushback: the colors flatter table lineage. Five facts wear CRM orange and only one carries a CRM column. A table-level map is the right overview and the wrong audit. Use it to find where to look, then trace columns before you tell anyone a dashboard depends on a source.