Basic Setup for Open Source Deployment. Points at BigQuery and uses GCP Cloud SQL Postgres instance for the backend.
- Have BigQuery Enabled
- Create a Cloud SQL Postgres Instance
- Create a database for the state backend -- Get the connection string
- Create a SQLMesh User for the database -- Username / Password
- Create a GCP service account and download a json keyfile
- Rename it to
keyfile.jsonand place it in the root of the repo
- Download
uv - Run
make install - Fill out
.envfile -- reference.env.examplefile
See the config.py file. It MUST be named config.py and have a config object in it.
- Connection: BigQuery
- State Connection: Cloud SQL (Postgres)
- Test Connection: DuckDB
- Enabled
- Rules:
- Ambiguous Invalid Columns
- Invalid Select Star Expansion
- No Ambiguous Projections
- No Missing Audits
- No Missing Unit Tests