Analytics Engineering with dbt versus SQLMesh: Tests, Contracts and Safe Model Changes
Does an analytics-engineering tool really stop a wrong model change before it reaches the dashboards, and what does each change cost to rebuild? Nine retail models and a seed over the UCI Online Retail II invoice lines are written once and generated into three projects on DuckDB: hand-run SQL scripts with three hand checks, a dbt project with data tests, contracts and unit tests (slim CI, then deploy), and a SQLMesh project with the same audits and unit tests (plan into a development environment, then production). Twenty changes - twelve seeded mistakes and eight intended changes - go through each workflow; six dashboard queries show what production looks like afterwards.
NOTE: Public UCI Online Retail II data (CC BY 4.0); the same nine models and one seed, generated from one specification, built by hand-run SQL scripts, dbt and SQLMesh on local DuckDB files; twenty model changes were seeded and labelled before the study; every command ran as its own process on a standard laptop.
Category: Big Data
Big Data Project BD06 from ProTechSC Academy, with graphical abstract, video demonstration and project guidance.