diff --git a/models/build/edfi_3/students/bld_ef3__immutable_stu_demos.sql b/models/build/edfi_3/students/bld_ef3__immutable_stu_demos.sql index 3619f1c1..b424af2b 100644 --- a/models/build/edfi_3/students/bld_ef3__immutable_stu_demos.sql +++ b/models/build/edfi_3/students/bld_ef3__immutable_stu_demos.sql @@ -44,7 +44,7 @@ joined as ( stu_races.race_array, stu_races.has_hispanic_latino_ethnicity from stg_student - join stu_demos + {% if not var('edu:stu_demos:require_strict', True) %}left {% endif %}join stu_demos on stg_student.k_student = stu_demos.k_student left join stu_races on stu_demos.k_student = stu_races.k_student diff --git a/models/core_warehouse/dim_student.sql b/models/core_warehouse/dim_student.sql index 66fcb24a..2c2f8726 100644 --- a/models/core_warehouse/dim_student.sql +++ b/models/core_warehouse/dim_student.sql @@ -193,7 +193,7 @@ formatted as ( from stg_student - join stu_demos + {% if not var('edu:stu_demos:require_strict', True) %}left {% endif %}join stu_demos on stg_student.k_student = stu_demos.k_student join stu_immutable_demos on stu_demos.{{demos_join_var}} = stu_immutable_demos.{{demos_join_var}}