Writing · November 30, 2026
A data pipeline drifts one fix at a time
A number in the monthly report is wrong. Someone traces it back and finds the story: a source feed changed a field last spring, a date started arriving in a new format, a nightly job failed halfway and nobody saw. Each one got a quick fix in the warehouse to make that day’s report come out right. None of the fixes went back to where the data was loaded. A year of them later, the warehouse and the systems it is supposedly built from have quietly drifted apart, and the report everyone makes decisions from is correct in a way no one can prove.
Getting the data in the first place is its own fight, because the systems that hold it were not built to hand it over. A REST API paginates oddly and rate-limits you. A mainframe you can only reach over the VPN hands back a fixed-width export designed in 1994. Sensors on a ship report at their own cadence. A market feed is live and waits for no one. The data exists. It just won’t come out clean, or on time, or the same way twice.
The temptation, pulling it, is to clean as you go — coerce the types, fix the dates, drop the rows that look malformed. That is where the rot starts. An account number loses its leading zero, a code that was text becomes a number, a genuinely bad record vanishes instead of being flagged for someone to look at. The pull has to be faithful: take the data as the source actually holds it, errors and oddities included, and make every transformation explicit and repeatable downstream, where you can see it and run it again. It is the same discipline that keeps me from letting a tool reformat a value it was never asked to touch.
Drift is not one big failure. It is the accumulation of small fixes made in place. A value gets corrected directly in the warehouse because the deadline is today; the correction works, the report is right, and it never makes its way back into the loader. Do that enough times and the warehouse becomes a heap of manual patches nobody can reconstruct — right today, unverifiable tomorrow, and impossible to rebuild if the server is lost. The warehouse has quietly become the system of record, and a warehouse is the worst possible system of record.
The discipline that prevents it is dull, and it holds: build the pipeline so every table reloads from source, start to finish, on demand. No edits in place. When something is wrong you fix the transformation and reload, not the row. A pipeline you can tear down and rebuild from source cannot drift, because every run discards yesterday’s accumulated corrections and re-derives the answer from the systems that actually hold the truth. It costs more to build that way, and what it buys is a number you can still trust a year later.
I built this for a maritime fleet-performance platform: 40 load jobs feeding one warehouse model, a nightly consolidated run alongside a separate high-frequency path for the readings coming off the ships’ own sensors, all orchestrated from the command line with a runbook an operator could follow. Much of it was carbon-intensity reporting — the IMO CII and AER metrics a fleet has to answer for to regulators — so the numbers had to be defensible, not merely available. The tables reload cleanly; the model rebuilds from source instead of drifting through edits. I have been building pipelines like this for a long time. Decades ago it was the report on overnight foreign-market movement that the Treasury Secretary used to brief the President each morning, captured live off the Reuters feed and produced end to end to a same-morning deadline, every trading day. A feed that won’t give its data up, and a number that has to be right and has to be provable — that is the kind of problem I like being brought in on.