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

fix null program_num_required_courses on mitxonline series program #962

Conversation

rachellougee
Copy link
Contributor

@rachellougee rachellougee commented Jan 3, 2024

What are the relevant tickets?

#961

Description (What does it do?)

Fixing bug on nulls when doing math on addition: 1 + NULL = NULL, which resulted null in program_num_required_courses for programs that only contain required courses. e.g. program_id=4,5,6,7,8,9

This bug also blocked a few downstream models (e.g. int__mitxonline__courserunenrollments) from being updated due to test failure.

How can this be tested?

dbt build --select int__mitxonline__program_requirements

test should pass

SELECT program_num_required_courses FROM "ol_data_lake_production"."ol_warehouse_production_rlougee_intermediate"."int__mitxonline__program_requirements" 
where program_id in (4,5,6,7,8,9)

should have correct required course populated

@rachellougee rachellougee merged commit 3545c60 into main Jan 3, 2024
@rachellougee rachellougee deleted the 961-blank-program_num_required_courses-in-int__mitxonline__program_requirements-for-new-series-program branch January 3, 2024 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

blank program_num_required_courses in int__mitxonline__program_requirements for new series program
2 participants