Plan and preview warehouse SQL model changes before rollout with SQLMesh
Compare SQL model changes, preview backfills and downstream impact, and stage safer warehouse rollouts before execution.
Prerequisites
Python 3.9+, pip, SQLMesh, warehouse connection
Installation
Use the upstream install or setup path that matches your environment:
- pip install 'sqlmesh[lsp]' # install the sqlmesh package with extensions to work with VSCode
Requirements and caveats from upstream:
- SQLMesh is a next-generation data transformation framework designed to ship data quickly, efficiently, and without error. Data teams can run and deploy data transformations written in SQL or Python with visibility and...
- python -m venv .venv
- Note: You may need to run python3 or pip3 instead of python or pip, depending on your python installation.
Basic usage or getting-started notes:
run the unit test
'new_column' AS new_column, /* non-breaking change example */
Track what data’s been modified and run only the necessary transformations for incremental models
Extracted from upstream docs: https://raw.githubusercontent.com/SQLMesh/sqlmesh/HEAD/README.md