-
Notifications
You must be signed in to change notification settings - Fork 13
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
Use new NTD monthly Ridership models for mart_ntd.dim_monthly_ntd_ridership_with_adjustments #3549
Conversation
...ata_products/historical__complete_monthly_ridership_with_adjustments_and_estimates__voms.yml
Show resolved
Hide resolved
Warehouse report 📦 Checks/potential follow-upsChecks indicate the following action items may be necessary.
New models 🌱calitp_warehouse.mart.ntd.dim_monthly_ridership_with_adjustments DAGLegend (in order of precedence)
|
75cc6c0
to
3501916
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did a 1-1 to review this. A good update on the previous work. I assume we'll remove the outdated models in the next pr!
3501916
to
9225ed1
Compare
Thank you Vivek! |
dim_monthly_ridership_with_adjustments (removed _ntd_). - Format SQL file and reorder columns - Remove irrelevant year column - Rename columns to follow the same pattern as the other new NTD models - Add surrogate key [#3519]
9225ed1
to
9e679d9
Compare
Description
This PR updates
mart_ntd.dim_monthly_ntd_ridership_with_adjustments
and dependents tables to use the new NTD monthly ridership models processed in Airflow as requested on #3519.The xlsx file link was updated to import new data (July, August, and September).
All documentation for NTD monthly ridership tables and columns were added.
As part of fixing the nomenclature on other NTD models (as requested by @tiffanychu90 on #3497), the main table is now
mart_ntd.dim_monthly_ridership_with_adjustments
, removing "ntd" from the name since it is part of themart_ntd
group.Also to keep consistent with other NTD models, some column names where changed on mart_ntd.dim_monthly_ridership_with_adjustments:
uza_name
is nowprimary_uza_name
uace_cd
is nowprimary_uza_code
mode_full_name
is nowmode_name
,ts
is nowexecution_ts
year
column since it was only part of the old scrape processkey
column as a unique key generated fromntd_id
,mode
,tos
,period_month
,period_year
This PR also remove the deprecated tables:
Type of change
How has this been tested?
Models tested and created on staging.
Post-merge follow-ups
mart_ntd.dim_monthly_ntd_ridership_with_adjustments
bymart_ntd.dim_monthly_ridership_with_adjustments
on Metabase and Jupyter notebooks.