Create intermediate dbt models for neighbourhood data #61
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Create dbt intermediate layer models that transform and combine staging data for analytical consumption.
Models to Create
int_neighbourhood__demographicsint_neighbourhood__housingint_neighbourhood__crime_summaryint_neighbourhood__amenity_scoresint_rentals__neighbourhood_allocatedAcceptance Criteria
dbt/models/intermediate/int_{domain}__{transformation}_intermediate.ymldbt run --select intermediatepassesTechnical Notes
int_rentals__neighbourhood_allocatedis the key model that joins CMHC zone-level data to neighbourhoods usingbridge_cmhc_neighbourhood.weightLabels: type:feature, component:database, priority:high, tech:dbt
Completed ✅
All 5 intermediate models created:
int_neighbourhood__demographics.sql- Combined census with income quintilesint_neighbourhood__housing.sql- Housing indicators + affordabilityint_neighbourhood__crime_summary.sql- Aggregated crime with YoY changeint_neighbourhood__amenity_scores.sql- Normalized per capita metricsint_rentals__neighbourhood_allocated.sql- CMHC data via area weightsAcceptance Criteria Met:
dbt/models/intermediate/int_{domain}__{transformation}_intermediate.ymldbt parsepasses without errors