Skip to content
thisismairajPublic

About

CDC BRFSS health-survey pipeline built in parallel on Databricks and Snowflake — medallion architecture, verified value-by-value parity across platforms

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

44 Commits

Folders and files

Repository files navigation

Public Data Pipeline on Databricks + Snowflake

Same public health dataset, built into the same medallion pipeline on Databricks and Snowflake in parallel, to prove both produce identical results from identical rules — evidence for a platform decision, not opinion.

The raw-data defects behind the quarantine/silver rules here are written up as a Kaggle notebook.

Results (real, measured)

  • 2,380,047 rows (CDC BRFSS, 2011–2015) loaded identically on both platforms
  • 29,402 / 29,402 gold-table values match, value by value, across both platforms
  • 11 of 11 CDC-published health indicators reproduced exactly
  • National diabetes prevalence trend, 2011→2015: 9.8% → 10.18% → 10.27% → 10.54% → 10.5% — two independently-built pipelines (a hand-sequenced build and a declarative Lakeflow pipeline) agree on this to the decimal
  • Nothing silently dropped: 73 rows quarantined for impossible dates, 1,813,677 bad cells corrected or quarantined, each with a written reason

Architecture

Both platforms use the same layered pattern: bronze → silver → quarantine → gold, with a gate that stops the run if the numbers don't reconcile.

5 source files
     │
     ▼
┌─── Databricks ───┐   ┌─── Snowflake ───┐
│ bronze            │   │ bronze           │
│ silver             │   │ silver           │
│ quarantine         │   │ quarantine       │
│ gold               │   │ gold             │
│ gate               │   │ gate             │
└─────────┬─────────┘   └────────┬─────────┘
          └── compared value by value ──┘
                       │
                       ▼
              Power BI dashboard

Repo layout

Path Contents
sql/databricks/ Bronze/silver/gold SQL for the Databricks Free Edition build
sql/lakeflow/ Databricks Lakeflow declarative pipeline (trial workspace)
sql/snowflake/ Bronze/silver/gold SQL for the Snowflake build
scripts/ SQL generators, platform deploy scripts, cross-platform metric comparison
databricks_bundle/ Databricks Asset Bundle (dev/staging/prod targets), deployed as code

Power BI project files (.pbip) are generated locally from sql/ gold tables.

Status

Five of six core requirements have real, measured evidence behind them; a formal platform recommendation is held back until the remaining latency/cost metrics exist, rather than delivered as opinion.

About

CDC BRFSS health-survey pipeline built in parallel on Databricks and Snowflake — medallion architecture, verified value-by-value parity across platforms

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages