Closed erikamov closed 6 days ago
Warehouse report 📦
Checks indicate the following action items may be necessary.
calitp_warehouse.mart.ntd.dim_monthly_ridership_with_adjustments
Legend (in order of precedence)
Resource type | Indicator | Resolution |
---|---|---|
Large table-materialized model | Orange | Make the model incremental |
Large model without partitioning or clustering | Orange | Add partitioning and/or clustering |
View with more than one child | Yellow | Materialize as a table or incremental |
Incremental | Light green | |
Table | Green | |
View | White |
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!
Thank you Vivek! I remove the outdated models as requested. :D
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
[ ] No action required
[x] Actions required (specified below)
Check for the correct creation of the new model after the next DAG runs with data until September/2024.
Replace the use of
mart_ntd.dim_monthly_ntd_ridership_with_adjustments
bymart_ntd.dim_monthly_ridership_with_adjustments
on Metabase and Jupyter notebooks.Change the schedule of the DAG to weekly instead of daily