add school year to fct models where it was missing#215
Merged
Conversation
tomreitz
approved these changes
Jan 27, 2026
Contributor
There was a problem hiding this comment.
Hi @rlittle08 I'm approving this, it looks good to me. Thanks for your work here!
I do have two questions:
- are there are other models that should also be included? like – from the query you slacked me – perhaps
fct_student_program_service? - I noticed that some
edu_ext_podiummodels have fields likedisplay_school_year(here) orenrolled_school_year/assessed_school_year(here) instead ofschool_year– should we update thedata_inventory()macro ofedu_data_quality_monitoringto look for those columns whenapi_yearandschool_yearare not found?
Contributor
There was a problem hiding this comment.
The changes in this file look great, but go beyond just adding school_year? Just want to make sure that's intentional.
Collaborator
Author
There was a problem hiding this comment.
yeah thanks, i realized while in here that this one was under documented, figured i'd knock it out
Collaborator
Author
|
ryanaguilar
pushed a commit
that referenced
this pull request
Mar 25, 2026
* add school year to fct models where it was missing * update changelog
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.
Description & motivation
This adds
school_yearto several fct models. Previously, downstream queries needed to make an extra join (e.g. todim_calendar_dateordim_student) to getschool_year.We are adding this for general convenience, as well as to support better output from the new automatic inventory output recently released in edu_data_quality_monitoring 0.1.4
Breaking changes introduced by this PR:
By default, this is non-breaking. However, certain queries/models may break downstream if they are following poor practice and failing to explicitly reference columns.
e.g., if there's a model or ad-hoc query like:
--> WILL BREAK
but if referenced explicitly:
--> WILL NOT BREAK
PR Merge Priority:
Changes to existing files:
self-explanatory
New files created:
none
Tests and QC done:
This has been tested in our two implementations with the most dependent dbt packages (SC & TX), with no errors found. Row counts, metrics, etc. have NOT been checked, but I'm assuming those are safe, given the simple nature of these edits.
edu_wh PR Review Checklist:
Make sure the following have been completed before approving this PR:
## New Featuresfor features, etc.