← All case files
// case file
CASE / 06
dbt Framework
DBTSNOJINYAM
··✓✓✓✓366 TESTSCASE 06DBT MODEL GRAPH
● Shippedcase file · 06 / 16
Case
#06
Where
Yosi Health
Categories
dbt · Modeling · Snowflake
Read
~2 min
/06

dbt-Based Analytics Engineering Framework

dbtSnowflakeJinjaYAML
Migrated legacy SQL views to dbt with tests, docs, and CI/CD. Built solo; 366 tests caught 50 failures before they reached production.
+
The Problem

Hundreds of business-critical views had grown over years with no tests, no documentation, and no consistent style. Logic was duplicated across views, dependencies were implicit, and a change in one place could quietly break a dashboard halfway across the warehouse.

Adoption
Built byMe, solo, end to end
BeforeNo tests, no docs and logic duplicated across hundreds of views
Now366 tests; 50 failures caught before they reached production
How it's built

Migrated transformations to dbt with a layered staging → intermediate → mart structure. Added schema tests for uniqueness, referential integrity, and accepted values. Generated docs auto-publish on every merge. CI runs the full test suite before any change reaches production.

Technical Details
  • Layered model architecture with explicit DAG
  • Schema tests, custom tests, and freshness checks
  • Macros for reused logic (tenant filters, SCD merges)
  • Auto-generated docs with column-level lineage
  • GitHub Actions CI for slim builds on PRs
366
Tests
50
Failures caught
Solo
Built end to end