Skip to content

About

Exploring new dbt features with Bigquery

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

dbt_bigquery

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.

Stack

  • dbt-core 1.11 with the dbt-bigquery adapter
  • Python tooling managed with uv
  • Auth via BigQuery OAuth (local Application Default Credentials)

What it demonstrates

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/

Modeling layers

seeds (raw_*)  ->  models/staging (stg_*, views)  ->  models/marts (dim_/fct_, tables)

Run it

# 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 build

See CLAUDE.md for the full command reference and architecture notes.

About

Exploring new dbt features with Bigquery

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors