Meridian Freight Platform
Databricks, PySpark, Delta Lake, Unity Catalog, Auto Loader, Asset Bundles, Airflow, Power BI, DAX
An end-to-end platform for a fictional road-freight forwarder whose Ops, Finance and Sales teams each calculated on-time delivery differently and checked carrier invoices by hand. It covers 200,000 shipments and about 2 million tracking scans. Four deliberately messy sources go in: a PostgreSQL transport system, 523 daily Parquet scan files with late and duplicate arrivals, carrier invoices in three CSV layouts, and a reference API that fails on purpose.
Gold is a star schema of 3 facts and 6 dimensions with a Type 2 customer dimension. I then rebuilt it on Databricks: Auto Loader and Delta MERGE loads into Unity Catalog, a Lakeflow Job with retries, a reconciliation gate and repair runs, dev and prod deployed from one Asset Bundle, and a serving table secured with a row filter and column mask.
| Reconciliation | 0 failed — 27 passed, 7 explained, 11 informational |
|---|---|
| Revenue control total | Identical in Silver, Gold, the export and Power BI |
| Why SCD Type 2 | Joining on the natural key inflated revenue by 7.7% in a test |
| Crash recovery | 4,749 duplicate rows collapsed in Silver, no manual repair |
| Finding | The carrier, not region or segment, drives late delivery |
| Key skew | Largest-to-median partition 21.9× → 2.9× with a salt |
Synthetic data, fictional company, single workspace. This is not a production deployment; the README lists every known limitation.