SQLMesh

SQLMesh

Open Source

Data transformation with virtual environments and plan-and-apply deploys.

Data Engineering & ETL
Transformation

Published 1 December 2026Last updated 1 December 2026

Scores

Popularity2/5

Emerging

About 3,400 GitHub stars and roughly 635,000 monthly PyPI downloads, against dbt Core's 24 million; analytics engineers know it as dbt's main open-source challenger, while developers outside data teams rarely meet it.

Learning Curve3/5

Moderate

Models are plain SQL and a dbt project runs as-is, but plan categories, model kinds, time intervals, and environment state take time to understand before incremental pipelines behave as expected.

Flexibility4/5

Flexible

Models and macros can be written in SQL or Python, SQL written in one dialect is transpiled to 16 engines, and dbt projects, dlt pipelines, and Kestra or GitHub Actions schedules all plug in.

Performance4/5

Fast

Virtual environments promote changes by swapping views instead of rebuilding tables, non-breaking changes skip downstream backfills, and interval tracking runs only the data still missing, so warehouse compute goes only to what changed.

Portability4/5

Portable

Apache 2.0 under the Linux Foundation, runs on 16 engines, and transpiles SQL between dialects, so switching warehouses is mostly configuration; native SQLMesh model definitions are its own format, though, and moving back to dbt means rewriting them.

About SQLMesh

SQLMesh is an open-source data transformation framework. Models are SQL or Python files; SQLMesh works out the dependency graph and builds them as tables and views inside the warehouse, on engines including Snowflake, BigQuery, Databricks, Redshift, PostgreSQL, and DuckDB. Unlike template-based tools, it parses the SQL it runs, which gives column-level lineage, catches errors before a query reaches the warehouse, and transpiles SQL between dialects.

Changes ship through a plan and apply workflow modelled on Terraform: a plan lists the changed models, the downstream models they affect, and the data to backfill before anything runs. Development environments are virtual, sets of views over existing tables, so creating one copies no data and promoting to production swaps views instead of rebuilding tables. Incremental models track processed time intervals, and unit tests and audits check logic and data.

SQLMesh can also run an existing dbt project, so a team can try it without rewriting its models. It is licensed under Apache 2.0, installs with pip, and works through a CLI, a Python API, or a VS Code extension. Fivetran contributed it to the Linux Foundation in 2026, so it is governed as a vendor-neutral community project.

Key Features

  • Virtual data environments built as views over production tables, with no data copied
  • Terraform-style plan and apply that previews affected models and backfills
  • Automatic breaking versus non-breaking classification of every model change
  • Column-level lineage derived from SQLGlot parsing of each model
  • SQL transpiled from any supported dialect to the target engine across 16 engines
  • Incremental models that track processed time intervals and run only missing ones
  • Unit tests, data audits, and a GitHub CI/CD bot for blue-green deployments
  • Runs existing dbt projects after sqlmesh init -t dbt

Pros

  • Development environments cost no extra warehouse storage because they reuse production tables
  • The plan output shows downstream impact and backfill scope before any query runs
  • SQL errors and column-level impact are caught at parse time rather than in the warehouse
  • Existing dbt projects run without a rewrite, which makes a gradual migration possible
  • Vendor-neutral Linux Foundation project under the Apache 2.0 license

Cons

  • Community, tutorials, and third-party integrations are a small fraction of dbt's
  • No package hub comparable to dbt Hub for shared macros and source models
  • State, time intervals, and model kinds are extra concepts for teams coming from dbt
  • The VS Code extension is still in preview and the browser UI is deprecated
  • Fewer engine adapters than dbt's community adapter catalogue

SQLMesh Pricing

Open Source

Tech Stacks with SQLMesh

AWS Data Dashboard

Project

A minimal AWS analytics stack: store and query data in Amazon Redshift, then build dashboards and embed analytics with Amazon QuickSight, with no third-party tools required.

Data Ingestion add-on:
Data Transformation add-on:
Orchestrator add-on:

Tools Related to SQLMesh

Integrates with SQLMesh(5)

SQLMesh has a built-in Snowflake engine adapter, so models are built and promoted as Snowflake tables and views, with SQL from other dialects transpiled to Snowflake's.

SQLMesh's BigQuery adapter builds models as BigQuery tables and views and handles BigQuery's SQL dialect through SQLGlot.

DuckDB is SQLMesh's default local engine: `sqlmesh init` scaffolds a DuckDB project, which makes it the usual way to develop and test models before pointing them at a warehouse.

SQLMesh projects can be scheduled from Kestra through its official SQLMesh plugin, which runs SQLMesh CLI commands as flow tasks.

SQLMesh's Databricks adapter runs transformation models on Databricks SQL warehouses and clusters as Delta tables and views.

Alternatives to SQLMesh(1)

Both turn SQL models into tables and views in the warehouse. SQLMesh parses the SQL for column-level lineage and breaking-change detection, and uses virtual environments with plan and apply; dbt has the far larger community, package hub and adapter list. SQLMesh can also run existing dbt projects.

Tags

PythonSQLOpen SourceData EngineeringData Pipelines

Details

Maintained
Yes
Tool type
Transformation
Primary language
SQL
Hosting
Self-hosted
Open source
Yes
GitHub stars
3.4k
Stars updated
2026-12-01