diff --git a/CHANGELOG.md b/CHANGELOG.md index e0986ec..abdf9bd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,10 @@ ## Under the hood +# edu_wh v0.3.4 +## Fixes +- Fix `bld_ef3__wide_school_network_assoc` to group across years, to correctly remove duplicates on `k_school`. Previously, incorrect duplicate records were created in `dim_school` in cases where multiple network types are configured in `xwalk_network_association_types`. + # edu_wh v0.3.3 ## New features - Add `fct_student_diploma` and a companion test for monitoring deduplicated data - `diploma_record_duplicates` diff --git a/dbt_project.yml b/dbt_project.yml index 473f866..dd9052c 100644 --- a/dbt_project.yml +++ b/dbt_project.yml @@ -1,7 +1,7 @@ config-version: 2 name: 'edu_wh' -version: '0.3.3' +version: '0.3.4' require-dbt-version: [">=1.0.0", "<2.0.0"] # This setting configures which "profile" dbt uses for this project. diff --git a/models/build/edfi_3/bld_ef3__wide_school_network_assoc.sql b/models/build/edfi_3/bld_ef3__wide_school_network_assoc.sql index 545d169..ac052a2 100644 --- a/models/build/edfi_3/bld_ef3__wide_school_network_assoc.sql +++ b/models/build/edfi_3/bld_ef3__wide_school_network_assoc.sql @@ -40,8 +40,7 @@ wide as ( select deduped.k_school, - deduped.tenant_code, - deduped.api_year + deduped.tenant_code {% set network_types = dbt_utils.get_column_values( table=ref('xwalk_network_association_types'), column='network_type', @@ -62,8 +61,8 @@ wide as ( from deduped join xwalk_network_school_assoc_types xwalk on deduped.network_purpose = xwalk.network_purpose - group by 1,2,3 + group by 1,2 ) -select * from wide \ No newline at end of file +select * from wide