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

Quick psat table swap for grad requirements #2470

Open
wants to merge 82 commits into
base: main
Choose a base branch
from

Conversation

GabyRangelB
Copy link
Contributor

@GabyRangelB GabyRangelB commented Feb 20, 2025

Pull Request

Summary & Motivation

Self-review

If this is a same-day request, please flag that in our Slack channel!

  • Update due date, assignee, and priority on our
    TEAMster Asana Project
  • Format has been run on all modified files

SQL

  • Ensure you are using the union_dataset_join_clause() macro for queries that employ any
    models using these datasets: deanslist edplan iready overgrad pearson powerschool
    renlearn titan

  • All distinct usage must be accompanied by an comment explaining it's necessity

  • If you are adding a new external source, run:

    dbt run-operation stage_external_sources --vars
    "ext_full_refresh: true"
    

Troubleshooting


@GabyRangelB GabyRangelB requested review from a team as code owners February 20, 2025 22:10
…uick_psat_table_swap_for_grad_requirements
…uick_psat_table_swap_for_grad_requirements
…uick_psat_table_swap_for_grad_requirements
…uick_psat_table_swap_for_grad_requirements
…uick_psat_table_swap_for_grad_requirements
…uick_psat_table_swap_for_grad_requirements
…uick_psat_table_swap_for_grad_requirements
@cbini
Copy link
Member

cbini commented Mar 5, 2025

from #2502

FYI: I added a safecast to stg_collegeboard_psat because the new math test score had a field type conflict. it is currently only showing on my #2470 branch, which I should finish today or tomorrow:
Image

Issue: This error started popping up on Monday afternoon. I have been using this view with no issue on branch #2470 for weeks, so I don't know what changed. The views I'm working on pass build on DBT, but then build doesn't pass on GH. I have to run a full refresh on DBT for the GH to pass, but then a few hours later it fails again.
Image

Thanks!

Comment on lines +46 to +49
inner join
{{ ref("stg_powerschool__students") }} as n
on s.studentid = n.id
and {{ union_dataset_join_clause(left_alias="s", right_alias="n") }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not necessary: you can join downstream on studentid

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i need student number there so that the scores CTE in int_students__graduation_path_codes.sql stays simple and works the way i need it to work.

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