Add LEP status indicator to autocomm students extract#3378
Open
anthonygwalters wants to merge 4 commits intomainfrom
Open
Add LEP status indicator to autocomm students extract#3378anthonygwalters wants to merge 4 commits intomainfrom
anthonygwalters wants to merge 4 commits intomainfrom
Conversation
…dents Adds a derived LEP status flag to rpt_powerschool__autocomm_students that sets s_nj_stu_x.lep_tf to 1 when a student has an active LEP enrollment (lepbegindate is not null and lependdate is null), and explicitly 0 otherwise. No new joins required — lepbegindate/lependdate already flow through int_extracts__student_enrollments. https://claude.ai/code/session_01YA7C22NH1pw1LpWcwXJTZK
Repositions the new LEP flag column to the end of the SELECT list to avoid import issues with the nightly SFTP transmission to PowerSchool. https://claude.ai/code/session_01YA7C22NH1pw1LpWcwXJTZK
…laude/add-lep-flag-column-EjIOL
…laude/add-lep-flag-column-EjIOL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request
Summary & Motivation
When merged, this pull request will add a new
s_nj_stu_x__lep_tfcolumn to therpt_powerschool__autocomm_studentsmodel that identifies students with active Limited English Proficiency (LEP) status. This column returns 1 if a student has a LEP begin date but no end date (indicating current LEP enrollment), and 0 otherwise.Self-review
General
dbt
[model name].ymlproperties file for all modelsrpt_powerschool__autocomm_students.ymlwith the new column definitionSQL
group by,order by, ordistinctclauses addedTesting
No testing needed. This is a straightforward column addition using existing source data fields with a simple conditional logic pattern consistent with other columns in the model.
https://claude.ai/code/session_01YA7C22NH1pw1LpWcwXJTZK