dab: filter Unity Catalog schemas to pipeline-produced only #219

Closed
opened 2026-03-25 03:23:17 +00:00 by kert · 2 comments
Owner

Problem

_get_catalog_schemas() returns 34 schemas from aco.table Pydantic models including 21 legacy dbt/Tuva schemas (alr, asr, ccsr, ccw, reach, ssp, etc.) not produced by any current pipeline. These get deployed as empty Unity Catalog schemas.

Tasks

  • Add pipeline_schemas() to src/aco/lake/catalog.py — derive schemas from pipeline registry output names
  • Use pipeline_schemas() in DAB generator instead of Catalog().schemas()
  • Verify: 13 schemas (one per pipeline) vs 34
  • Tests: schema list matches pipeline registry
## Problem `_get_catalog_schemas()` returns 34 schemas from `aco.table` Pydantic models including 21 legacy dbt/Tuva schemas (alr, asr, ccsr, ccw, reach, ssp, etc.) not produced by any current pipeline. These get deployed as empty Unity Catalog schemas. ## Tasks - [ ] Add `pipeline_schemas()` to `src/aco/lake/catalog.py` — derive schemas from pipeline registry output names - [ ] Use `pipeline_schemas()` in DAB generator instead of `Catalog().schemas()` - [ ] Verify: 13 schemas (one per pipeline) vs 34 - [ ] Tests: schema list matches pipeline registry
kert added this to the P28: DAB Modernization — Python wheel tasks, databricks-bundles, schema cleanup milestone 2026-03-25 03:23:17 +00:00
Author
Owner

Starting. Will add pipeline_schemas() to catalog.py and use it in the DAB generator.

Starting. Will add `pipeline_schemas()` to catalog.py and use it in the DAB generator.
Author
Owner

Complete.

  • Added Catalog.pipeline_schemas() — derives schemas from pipeline registry output names
  • Updated _get_catalog_schemas() in DAB generator to use pipeline_schemas()
  • Result: 13 schemas (was 34) — 21 legacy dbt/Tuva schemas dropped

✅ 112 DAB tests passed, 12,061 total.

Complete. - Added `Catalog.pipeline_schemas()` — derives schemas from pipeline registry output names - Updated `_get_catalog_schemas()` in DAB generator to use `pipeline_schemas()` - Result: 13 schemas (was 34) — 21 legacy dbt/Tuva schemas dropped ✅ 112 DAB tests passed, 12,061 total.
kert closed this issue 2026-03-25 03:34:43 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: homelab/stack#219