A small, self-contained dbt + Google BigQuery project built to explore modern dbt Core features. The raw data ships as seed CSVs (the classic jaffle_shop sample), so anyone with a GCP project can clone and run it end to end.
- dbt-core 1.11 with the dbt-bigquery adapter
- Python tooling managed with uv
- Auth via BigQuery OAuth (local Application Default Credentials)
| Feature | Where |
|---|---|
| Microbatch incremental models (partitioned by day) | models/marts/fct_orders.sql |
| Model contracts (enforced column types) | dim_customers in models/marts/_marts.yml |
Model versions (v1 → v2) |
models/marts/dim_customers_v*.sql |
| Unit tests (logic tested with mocked inputs) | unit_tests: in models/marts/_marts.yml |
| Seeds, staging→marts layering, sources of truth in YAML | seeds/, models/ |
seeds (raw_*) -> models/staging (stg_*, views) -> models/marts (dim_/fct_, tables)
# 1. Authenticate to BigQuery (once)
gcloud auth application-default login
# 2. Install dbt
uv sync
# 3. Point dbt at your GCP project/dataset
export DBT_PROFILES_DIR=.
export DBT_BIGQUERY_PROJECT=<your-gcp-project>
export DBT_BIGQUERY_DATASET=dbt_dev
# 4. Build everything (seeds -> models -> tests)
uv run dbt deps
uv run dbt seed
uv run dbt buildSee CLAUDE.md for the full command reference and architecture notes.