{"schemaVersion":"1.0","record":{"label":"SQLMesh","description":"SQL and Python transformation framework with change plans, reusable model environments and stateful incremental processing.","aliases":[],"kind":"software","website":"https://sqlmesh.readthedocs.io/","overview":"SQLMesh is a data-transformation framework for SQL and Python models. It uses plans to review changes and manages model versions across development and production environments, with state tracking for previously processed data and an adapter for supported dbt projects.","license":"Open source under Apache License 2.0.","lifecycle":"active","example":false,"features":[{"name":"Change impact planning","status":"supported","detail":"Plans categorize changes and determine direct and downstream backfills.","useCase":"Developing and deploying dependency-managed warehouse transformations","platforms":["Python"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://sqlmesh.readthedocs.io/en/stable/concepts/plans/","locator":"Breaking, non-breaking and forward-only backfill behavior","retrievedAt":"2026-10-07T17:45:34Z","kind":"vendor"}]},{"name":"Reusable environments","status":"supported","detail":"Model fingerprints allow environments to reference an existing physical model variant.","useCase":"Developing and deploying dependency-managed warehouse transformations","platforms":["Python"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://sqlmesh.readthedocs.io/en/stable/concepts/environments/","locator":"Production naming, model fingerprints and reuse","retrievedAt":"2026-10-07T17:45:50Z","kind":"vendor"}]},{"name":"dbt project compatibility","status":"limited","detail":"Supports dbt projects but requires incremental-logic adjustments and lacks some Jinja methods.","useCase":"Developing and deploying dependency-managed warehouse transformations","platforms":["Python"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://sqlmesh.readthedocs.io/en/stable/integrations/dbt/","locator":"Project loading, incremental adjustments and unsupported Jinja methods","retrievedAt":"2026-10-07T17:45:43Z","kind":"vendor"}]}],"alternatives":[],"slug":"sqlmesh","draftAlternatives":[{"targetSlug":"dbt","status":"limited","detail":"Can replace dbt execution for supported SQL projects after checking incremental logic, macros and workflow differences. Incremental models need adjustments, and some dbt Jinja methods are unsupported.","useCase":"Developing and deploying dependency-managed warehouse transformations","platforms":["Python"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://sqlmesh.readthedocs.io/en/stable/integrations/dbt/","locator":"Project loading, incremental adjustments and unsupported Jinja methods","retrievedAt":"2026-10-13T14:22:13Z","kind":"vendor"},{"url":"https://sqlmesh.readthedocs.io/en/stable/concepts/plans/","locator":"Breaking, non-breaking and forward-only backfill behavior","retrievedAt":"2026-10-07T17:45:34Z","kind":"vendor"}]}],"evidence":[{"url":"https://github.com/SQLMesh/sqlmesh","locator":"Transformation framework and Apache 2.0 license","retrievedAt":"2026-10-07T17:46:00Z","kind":"vendor"},{"url":"https://sqlmesh.readthedocs.io/en/stable/concepts/plans/","locator":"Breaking, non-breaking and forward-only backfill behavior","retrievedAt":"2026-10-07T17:45:34Z","kind":"vendor"},{"url":"https://sqlmesh.readthedocs.io/en/stable/integrations/dbt/","locator":"Project loading, incremental adjustments and unsupported Jinja methods","retrievedAt":"2026-10-07T17:45:43Z","kind":"vendor"},{"url":"https://sqlmesh.readthedocs.io/en/stable/integrations/dbt/","locator":"How to use SQLMesh incremental models with dbt projects; Unsupported dbt jinja methods. Checked 13 October 2026.","retrievedAt":"2026-10-07T17:46:00Z","kind":"vendor"}],"document":{"version":1,"references":[{"url":"https://github.com/SQLMesh/sqlmesh","locator":"Transformation framework and Apache 2.0 license","retrievedAt":"2026-10-07T17:46:00Z","id":"repo","title":"SQLMesh repository","kind":"vendor"},{"url":"https://sqlmesh.readthedocs.io/en/stable/concepts/plans/","locator":"Breaking, non-breaking and forward-only backfill behavior","retrievedAt":"2026-10-07T17:45:34Z","id":"plans","title":"SQLMesh plans","kind":"vendor"},{"url":"https://sqlmesh.readthedocs.io/en/stable/concepts/environments/","locator":"Production naming, model fingerprints and reuse","retrievedAt":"2026-10-07T17:45:50Z","id":"env","title":"SQLMesh environments","kind":"vendor"},{"url":"https://sqlmesh.readthedocs.io/en/stable/concepts/state/","locator":"Transactional OLTP state and JSON export/import","retrievedAt":"2026-10-07T17:46:00Z","id":"state","title":"SQLMesh state","kind":"vendor"},{"url":"https://sqlmesh.readthedocs.io/en/stable/guides/scheduling/","locator":"Run evaluates missing intervals then exits","retrievedAt":"2026-10-07T17:47:02Z","id":"schedule","title":"SQLMesh scheduling","kind":"vendor"},{"url":"https://sqlmesh.readthedocs.io/en/stable/integrations/dbt/","locator":"Project loading, incremental adjustments and unsupported Jinja methods","retrievedAt":"2026-10-13T14:22:13Z","id":"dbt","title":"SQLMesh dbt integration","kind":"vendor"}],"overviewCitations":["repo","plans","dbt"],"licenseCitations":["repo"],"sections":[{"id":"plans","heading":"Plans and backfills","paragraphs":[{"id":"plans-detail","content":[{"text":"A plan reviews changes before they are applied. Categorizing a modification as breaking causes the affected model and downstream dependencies to be backfilled; non-breaking changes backfill the directly modified model without automatically rebuilding its dependents. Forward-only changes reuse the production physical table without historical backfill. These choices affect both historical consistency and execution cost, rather than merely changing a deployment label."}],"citations":["plans"]}]},{"id":"environments","heading":"Development and production","paragraphs":[{"id":"environments-detail","content":[{"text":"Environments collect references to model snapshots. Fingerprints include a model's definition and its upstream dependencies, allowing an existing physical variant to be reused when it matches. Development can operate on a chosen date range instead of rebuilding all history. The name prod is special, and an unqualified plan targets production by default, so environment selection is operationally significant."}],"citations":["env"]}]},{"id":"state","heading":"State storage","paragraphs":[{"id":"state-detail","content":[{"text":"SQLMesh's state records previous model versions, environments and processed intervals. The documentation describes its workload as transactional and recommends an OLTP database or managed state service for production. An analytics warehouse may suffice for a proof of concept but is not the recommended production state store. State can be exported and imported as JSON, making state management a separate concern from retaining model source files."}],"citations":["state"]}]},{"id":"scheduling","heading":"Scheduling lifecycle","paragraphs":[{"id":"scheduling-detail","content":[{"text":"The built-in scheduler evaluates missing model intervals when run. It then exits rather than staying alive as a continuous scheduling service. Recurring operation therefore requires periodic invocation through an external scheduler or an appropriate managed arrangement. This distinction matters when replacing an existing job service: installing the framework alone does not create a continuously running production schedule."}],"citations":["schedule"]}]},{"id":"migration","heading":"dbt project migration","paragraphs":[{"id":"migration-detail","content":[{"text":"The dbt adapter can retain dbt file and project formats, but the documented incremental approach requires adjustments. SQLMesh distinguishes unit tests of query logic from audits of produced data, which correspond to dbt data tests. The integration also lists unsupported Jinja methods, including selected_sources and certain graph-value accessors. Those limitations should be checked against a real project rather than assuming every dbt extension transfers unchanged."}],"citations":["dbt"]}]},{"id":"substitution","heading":"Licensing and substitution","paragraphs":[{"id":"substitution-detail","content":[{"text":"SQLMesh is Apache-2.0 licensed and can substitute for "},{"text":"dbt","targetSlug":"dbt"},{"text":" for supported transformation projects when the team adopts its state and plan workflow. Its documented adapter is useful evidence of migration support, but does not establish parity with every current dbt generation or hosted feature. Warehouse execution and production state infrastructure still need provision, and no hands-on conversion is claimed here."}],"citations":["repo","dbt","state"]}]}]},"id":"Q1066","revision":1114,"updatedAt":"2026-10-13T20:32:01Z","sourceUrl":"https://substitutefor.net/entities/Q1066?revision=1114"}}