chore(dbt): address remaining data integrity audit findings #103
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?
Overview
Data integrity audit (
/data-review ./dbt/) identified several non-blocking issues that should be addressed for improved data quality and maintainability.Findings
WARN - Should Address
1. Empty
fact_amenitiestable (0 rows)raw_toronto.fact_amenitiesmart_neighbourhood_amenitiesreturns NULL values;amenity_scoreinmart_neighbourhood_overviewuses hardcoded placeholder (50.0)2. Missing relationship tests for foreign keys
stg_cmhc__rentals.zone_key→stg_dimensions__cmhc_zones.zone_keystg_cmhc__rentals.date_key→stg_dimensions__time.date_keystg_toronto__census.neighbourhood_id→stg_toronto__neighbourhoods.neighbourhood_idstg_toronto__crime.neighbourhood_id→stg_toronto__neighbourhoods.neighbourhood_idstg_cmhc__zone_crosswalk.neighbourhood_id→stg_toronto__neighbourhoods.neighbourhood_idINFO - Consider Addressing
3. Missing test for
is_month_startcolumndbt/models/shared/_shared.ymlnot_nulltest tois_month_startcolumn instg_dimensions__timefor consistency4. Legacy schema remnants
public_intermediate,public_marts,public_shared,public_staging5. Hardcoded year range in
int_year_spinedbt/models/intermediate/toronto/int_year_spine.sql:8generate_series(2014, 2025)current_dateAcceptance Criteria
fact_amenitiespopulated_staging.ymlnot_nulltest added foris_month_startTechnical Notes
Labels