Sprint 4 implementation: Loaders: - base.py: Session management, bulk insert, upsert utilities - dimensions.py: Load time, district, zone, neighbourhood, policy dimensions - trreb.py: Load TRREB purchase data to fact_purchases - cmhc.py: Load CMHC rental data to fact_rentals dbt Project: - Project configuration (dbt_project.yml, packages.yml) - Staging models for all fact and dimension tables - Intermediate models with dimension enrichment - Marts: purchase analysis, rental analysis, market summary Closes #16 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
24 lines
685 B
YAML
24 lines
685 B
YAML
version: 2
|
|
|
|
models:
|
|
- name: mart_toronto_purchases
|
|
description: "Final mart for Toronto purchase/sales analysis by district and time"
|
|
columns:
|
|
- name: purchase_id
|
|
description: "Unique purchase record identifier"
|
|
tests:
|
|
- unique
|
|
- not_null
|
|
|
|
- name: mart_toronto_rentals
|
|
description: "Final mart for Toronto rental market analysis by zone and time"
|
|
columns:
|
|
- name: rental_id
|
|
description: "Unique rental record identifier"
|
|
tests:
|
|
- unique
|
|
- not_null
|
|
|
|
- name: mart_toronto_market_summary
|
|
description: "Combined market summary aggregating purchases and rentals at Toronto level"
|