Overview
SQLMesh and dbt are both transformation frameworks for building a Medallion architecture — refining raw data through Bronze, Silver, Gold and Platinum layers. They cover the same ground, but their engineering philosophies differ in ways that show up clearly at scale.
dbt popularised SQL-first transformation with Jinja templating, explicit ref() dependencies and a huge package ecosystem. SQLMesh takes a more stateful, engineering-led approach: it understands your SQL, tracks what has already been built, runs audits as part of every plan, and ships virtual environments for safe, instant deploys. The interactive walkthrough below runs the same retail orders file through both lenses so the differences are concrete rather than theoretical.