Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spi persistence #2229

Merged
merged 2 commits into from
Nov 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -55,19 +55,19 @@ select
case
when
e.school = ei.ecc_account_id
and r.ktc_cohort <= {{ var("current_academic_year") - 5 }}
and r.ktc_cohort <= {{ var("current_academic_year") - 4 }}
and e.status = 'Graduated'
and e.actual_end_date <= date(r.ktc_cohort + 4, 08, 31)
then 1
when
e.school = ei.ecc_account_id
and r.ktc_cohort <= {{ var("current_academic_year") - 5 }}
and r.ktc_cohort <= {{ var("current_academic_year") - 4 }}
and e.status = 'Graduated'
and e.actual_end_date > date(r.ktc_cohort + 4, 08, 31)
then 0
when
e.school = ei.ecc_account_id
and r.ktc_cohort <= {{ var("current_academic_year") - 5 }}
and r.ktc_cohort <= {{ var("current_academic_year") - 4 }}
and e.status != 'Graduated'
and e.actual_end_date is not null
then 0
Expand All @@ -76,24 +76,35 @@ select
case
when
e.school = ei.ecc_account_id
and r.ktc_cohort <= {{ var("current_academic_year") - 7 }}
and r.ktc_cohort <= {{ var("current_academic_year") - 6 }}
and e.status = 'Graduated'
and e.actual_end_date <= date(r.ktc_cohort + 6, 08, 31)
then 1
when
e.school = ei.ecc_account_id
and r.ktc_cohort <= {{ var("current_academic_year") - 7 }}
and r.ktc_cohort <= {{ var("current_academic_year") - 6 }}
and e.status = 'Graduated'
and e.actual_end_date > date(r.ktc_cohort + 6, 08, 31)
then 0
when
e.school = ei.ecc_account_id
and r.ktc_cohort <= {{ var("current_academic_year") - 7 }}
and r.ktc_cohort <= {{ var("current_academic_year") - 6 }}
and e.status != 'Graduated'
and e.actual_end_date is not null
then 0
end as is_6yr_grad_int,

case
when
r.ktc_cohort <= {{ var("current_academic_year") - 4 }}
and e.status = 'Graduated'
then 1
when
r.ktc_cohort <= {{ var("current_academic_year") - 4 }}
and e.status != 'Graduated'
then 0
end as is_grad_ever_any,

case
when r.contact_college_match_display_gpa >= 3.50
then '3.50+'
Expand Down Expand Up @@ -169,6 +180,7 @@ select
null as is_same_school,
null as is_4yr_grad_int,
null as is_6yr_grad_int,
null as is_grad_ever_any,

case
when r.contact_college_match_display_gpa >= 3.50
Expand Down