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

Hotfix: Lower grading_period_name in surrogate key #111

Merged
merged 3 commits into from
Oct 21, 2024

Conversation

jayckaiser
Copy link
Contributor

@jayckaiser jayckaiser commented Oct 21, 2024

Hotfix: Lower grading_period_name in Surrogate Key

Description & motivation

The edu_edfi_source.gen_skey() macro uses a helper gen_key_list() macro that lowercases columns before concatting them into a surrogate key. This leads to a discrepancy in logic between grades and grading_periods that causes joins between them to fail.

Note that this appears to be a parallel issue to one that was solved in hotfix 0.4.1.

PR Merge Priority:

  • Low
  • Medium
  • High

This is a critical fix for Podium dashboards in South Carolina for the 2025 school year.

Changes to existing files:

  • stg_ef3__grading_periods: Wrap grading_period_name in a lower() call to align with gen_skey() macro.

Tests and QC done:

Queries have been run by hand in Snowflake that appears to resolve the join-issue when lowercasing this column.

@jayckaiser jayckaiser requested a review from rlittle08 October 21, 2024 16:29
@rlittle08 rlittle08 merged commit 2bbd17b into main Oct 21, 2024
@rlittle08 rlittle08 deleted the hotfix/lower_grading_period_name_in_surrogate_key branch October 21, 2024 19:17
gnguyen87 pushed a commit that referenced this pull request Nov 18, 2024
* Update stg_ef3__grading_periods.sql

* Update CHANGELOG.md

* Update dbt_project.yml

---------

Co-authored-by: rlittle08 <rlittle@edanalytics.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants