From 34ff2c84c4d3ea4a43c73d4f5cc83beea74e28a2 Mon Sep 17 00:00:00 2001 From: Charles Costanzo Date: Thu, 14 Nov 2024 15:55:34 -0500 Subject: [PATCH 1/6] expose the ntd annual staging tables as marts available in metabase --- .../ntd_fct_annual/_mart_ntd_fct_annual.yml | 102 ++++++++++++++++++ .../fct_ntd_annual_data__breakdowns.sql | 11 ++ ..._ntd_annual_data__breakdowns_by_agency.sql | 11 ++ ..._data__capital_expenses_by_capital_use.sql | 11 ++ ..._annual_data__capital_expenses_by_mode.sql | 11 ++ ..._capital_expenses_for_existing_service.sql | 11 ++ ...ital_expenses_for_expansion_of_service.sql | 11 ++ ...t_ntd_annual_data__employees_by_agency.sql | 11 ++ ...fct_ntd_annual_data__employees_by_mode.sql | 11 ++ ...a__employees_by_mode_and_employee_type.sql | 11 ++ .../fct_ntd_annual_data__fuel_and_energy.sql | 11 ++ ...annual_data__fuel_and_energy_by_agency.sql | 11 ++ ..._data__funding_sources_by_expense_type.sql | 11 ++ ...ta__funding_sources_directly_generated.sql | 11 ++ ...d_annual_data__funding_sources_federal.sql | 11 ++ ...ntd_annual_data__funding_sources_local.sql | 11 ++ ...ntd_annual_data__funding_sources_state.sql | 11 ++ ...funding_sources_taxes_levied_by_agency.sql | 11 ++ ...td_annual_data__maintenance_facilities.sql | 11 ++ ...data__maintenance_facilities_by_agency.sql | 11 ++ .../fct_ntd_annual_data__metrics.sql | 11 ++ ...l_data__operating_expenses_by_function.sql | 11 ++ ...rating_expenses_by_function_and_agency.sql | 11 ++ ...nnual_data__operating_expenses_by_type.sql | 11 ++ ..._operating_expenses_by_type_and_agency.sql | 11 ++ ...fct_ntd_annual_data__service_by_agency.sql | 11 ++ .../fct_ntd_annual_data__service_by_mode.sql | 11 ++ ..._data__service_by_mode_and_time_period.sql | 11 ++ ...facilities_by_agency_and_facility_type.sql | 11 ++ ..._annual_data__stations_by_mode_and_age.sql | 11 ++ ...nual_data__track_and_roadway_by_agency.sql | 11 ++ ...annual_data__track_and_roadway_by_mode.sql | 11 ++ ..._and_roadway_guideway_age_distribution.sql | 11 ++ ...annual_data__vehicles_age_distribution.sql | 11 ++ ...al_data__vehicles_type_count_by_agency.sql | 11 ++ 35 files changed, 476 insertions(+) create mode 100644 warehouse/models/mart/ntd_fct_annual/_mart_ntd_fct_annual.yml create mode 100644 warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__breakdowns.sql create mode 100644 warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__breakdowns_by_agency.sql create mode 100644 warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__capital_expenses_by_capital_use.sql create mode 100644 warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__capital_expenses_by_mode.sql create mode 100644 warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__capital_expenses_for_existing_service.sql create mode 100644 warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__capital_expenses_for_expansion_of_service.sql create mode 100644 warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__employees_by_agency.sql create mode 100644 warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__employees_by_mode.sql create mode 100644 warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__employees_by_mode_and_employee_type.sql create mode 100644 warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__fuel_and_energy.sql create mode 100644 warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__fuel_and_energy_by_agency.sql create mode 100644 warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__funding_sources_by_expense_type.sql create mode 100644 warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__funding_sources_directly_generated.sql create mode 100644 warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__funding_sources_federal.sql create mode 100644 warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__funding_sources_local.sql create mode 100644 warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__funding_sources_state.sql create mode 100644 warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__funding_sources_taxes_levied_by_agency.sql create mode 100644 warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__maintenance_facilities.sql create mode 100644 warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__maintenance_facilities_by_agency.sql create mode 100644 warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__metrics.sql create mode 100644 warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__operating_expenses_by_function.sql create mode 100644 warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__operating_expenses_by_function_and_agency.sql create mode 100644 warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__operating_expenses_by_type.sql create mode 100644 warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__operating_expenses_by_type_and_agency.sql create mode 100644 warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__service_by_agency.sql create mode 100644 warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__service_by_mode.sql create mode 100644 warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__service_by_mode_and_time_period.sql create mode 100644 warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__stations_and_facilities_by_agency_and_facility_type.sql create mode 100644 warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__stations_by_mode_and_age.sql create mode 100644 warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__track_and_roadway_by_agency.sql create mode 100644 warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__track_and_roadway_by_mode.sql create mode 100644 warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__track_and_roadway_guideway_age_distribution.sql create mode 100644 warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__vehicles_age_distribution.sql create mode 100644 warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__vehicles_type_count_by_agency.sql diff --git a/warehouse/models/mart/ntd_fct_annual/_mart_ntd_fct_annual.yml b/warehouse/models/mart/ntd_fct_annual/_mart_ntd_fct_annual.yml new file mode 100644 index 0000000000..223dfdb349 --- /dev/null +++ b/warehouse/models/mart/ntd_fct_annual/_mart_ntd_fct_annual.yml @@ -0,0 +1,102 @@ +version: 2 + +x-common-fields: + - &ntd_id + name: ntd_id + description: '{{ doc("ntd_id") }}' + - &agency + name: agency + description: '{{ doc("ntd_agency") }}' + - &ntd_legacy_id + name: ntd_legacy_id + description: '{{ doc("ntd_legacy_id") }}' + - &report_year + name: report_year + description: '{{ doc("ntd_report_year") }}' + - &reporter_type + name: reporter_type + description: '{{ doc("ntd_reporter_type") }}' + - &organization_type + name: organization_type + description: '{{ doc("ntd_organization_type") }}' + - &city + name: city + description: '{{ doc("ntd_city") }}' + - &state + name: state + description: '{{ doc("ntd_state") }}' + - &primary_uza_code + name: primary_uza_code + description: '{{ doc("ntd_primary_uza_code") }}' + - &primary_uza_name + name: primary_uza_name + description: '{{ doc("ntd_primary_uza_name") }}' + - &primary_uza_area_sq_miles + name: primary_uza_area_sq_miles + description: '{{ doc("ntd_primary_uza_area_sq_miles") }}' + - &primary_uza_population + name: primary_uza_population + description: '{{ doc("ntd_primary_uza_population") }}' + - &service_area_population + name: service_area_population + description: '{{ doc("ntd_service_area_population") }}' + - &service_area_sq_miles + name: service_area_sq_miles + description: '{{ doc("ntd_service_area_sq_miles") }}' + - &type_of_service + name: type_of_service + description: '{{ doc("ntd_type_of_service") }}' + - &mode + name: mode + description: '{{ doc("ntd_mode") }}' + - &mode_name + name: mode_name + description: '{{ doc("ntd_mode_name") }}' + - &time_period + name: time_period + description: '{{ doc("ntd_time_period") }}' + - &questionable_data + name: questionable_data + description: '{{ doc("ntd_questionable_data") }}' + - &agency_voms + name: agency_voms + description: '{{ doc("ntd_agency_voms") }}' + - &actual_vehicle_hours + name: actual_vehicle_hours + description: '{{ doc("ntd_actual_vehicle_hours") }}' + +models: + - name: fct_ntd_annual_data__stations_and_facilities_by_agency_and_facility_type + - name: fct_ntd_annual_data__stations_by_mode_and_age + - name: fct_ntd_annual_data__operating_expenses_by_function + - name: fct_ntd_annual_data__operating_expenses_by_function_and_agency + - name: fct_ntd_annual_data__operating_expenses_by_type + - name: fct_ntd_annual_data__operating_expenses_by_type_and_agency + - name: fct_ntd_annual_data__vehicles_age_distribution + - name: fct_ntd_annual_data__vehicles_type_count_by_agency + - name: fct_ntd_annual_data__service_by_mode_and_time_period + - name: fct_ntd_annual_data__service_by_mode + - name: fct_ntd_annual_data__service_by_agency + - name: fct_ntd_annual_data__track_and_roadway_by_mode + - name: fct_ntd_annual_data__track_and_roadway_guideway_age_distribution + - name: fct_ntd_annual_data__track_and_roadway_by_agency + - name: fct_ntd_annual_data__metrics + - name: fct_ntd_annual_data__funding_sources_by_expense_type + - name: fct_ntd_annual_data__funding_sources_directly_generated + - name: fct_ntd_annual_data__funding_sources_taxes_levied_by_agency + - name: fct_ntd_annual_data__funding_sources_local + - name: fct_ntd_annual_data__funding_sources_state + - name: fct_ntd_annual_data__funding_sources_federal + - name: fct_ntd_annual_data__maintenance_facilities + - name: fct_ntd_annual_data__maintenance_facilities_by_agency + - name: fct_ntd_annual_data__fuel_and_energy + - name: fct_ntd_annual_data__fuel_and_energy_by_agency + - name: fct_ntd_annual_data__employees_by_mode_and_employee_type + - name: fct_ntd_annual_data__employees_by_mode + - name: fct_ntd_annual_data__employees_by_agency + - name: fct_ntd_annual_data__capital_expenses_by_capital_use + - name: fct_ntd_annual_data__capital_expenses_by_mode + - name: fct_ntd_annual_data__capital_expenses_for_existing_service + - name: fct_ntd_annual_data__capital_expenses_for_expansion_of_service + - name: fct_ntd_annual_data__breakdowns + - name: fct_ntd_annual_data__breakdowns_by_agency diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__breakdowns.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__breakdowns.sql new file mode 100644 index 0000000000..9197957d18 --- /dev/null +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__breakdowns.sql @@ -0,0 +1,11 @@ +WITH staging_breakdowns AS ( + SELECT * + FROM {{ ref('staging', 'stg_ntd_annual_data__breakdowns') }} +), + +fct_ntd_annual_data__breakdowns AS ( + SELECT * + FROM staging_breakdowns +) + +SELECT * FROM fct_ntd_annual_data__breakdowns diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__breakdowns_by_agency.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__breakdowns_by_agency.sql new file mode 100644 index 0000000000..a0041f6982 --- /dev/null +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__breakdowns_by_agency.sql @@ -0,0 +1,11 @@ +WITH staging_breakdowns_by_agency AS ( + SELECT * + FROM {{ ref('staging', 'stg_ntd_annual_data__breakdowns_by_agency') }} +), + +fct_ntd_annual_data__breakdowns_by_agency AS ( + SELECT * + FROM staging_breakdowns_by_agency +) + +SELECT * FROM fct_ntd_annual_data__breakdowns_by_agency diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__capital_expenses_by_capital_use.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__capital_expenses_by_capital_use.sql new file mode 100644 index 0000000000..4d0ad31f5a --- /dev/null +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__capital_expenses_by_capital_use.sql @@ -0,0 +1,11 @@ +WITH staging_capital_expenses_by_capital_use AS ( + SELECT * + FROM {{ ref('staging', 'stg_ntd_annual_data__capital_expenses_by_capital_use') }} +), + +fct_ntd_annual_data__capital_expenses_by_capital_use AS ( + SELECT * + FROM staging_capital_expenses_by_capital_use +) + +SELECT * FROM fct_ntd_annual_data__capital_expenses_by_capital_use diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__capital_expenses_by_mode.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__capital_expenses_by_mode.sql new file mode 100644 index 0000000000..9fbd696d76 --- /dev/null +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__capital_expenses_by_mode.sql @@ -0,0 +1,11 @@ +WITH staging_capital_expenses_by_mode AS ( + SELECT * + FROM {{ ref('staging', 'stg_ntd_annual_data__capital_expenses_by_mode') }} +), + +fct_ntd_annual_data__capital_expenses_by_mode AS ( + SELECT * + FROM staging_capital_expenses_by_mode +) + +SELECT * FROM fct_ntd_annual_data__capital_expenses_by_mode diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__capital_expenses_for_existing_service.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__capital_expenses_for_existing_service.sql new file mode 100644 index 0000000000..a78597742b --- /dev/null +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__capital_expenses_for_existing_service.sql @@ -0,0 +1,11 @@ +WITH staging_capital_expenses_for_existing_service AS ( + SELECT * + FROM {{ ref('staging', 'stg_ntd_annual_data__capital_expenses_for_existing_service') }} +), + +fct_ntd_annual_data__capital_expenses_for_existing_service AS ( + SELECT * + FROM staging_capital_expenses_for_existing_service +) + +SELECT * FROM fct_ntd_annual_data__capital_expenses_for_existing_service diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__capital_expenses_for_expansion_of_service.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__capital_expenses_for_expansion_of_service.sql new file mode 100644 index 0000000000..6ffd93a2e7 --- /dev/null +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__capital_expenses_for_expansion_of_service.sql @@ -0,0 +1,11 @@ +WITH staging_capital_expenses_for_expansion_of_service AS ( + SELECT * + FROM {{ ref('staging', 'stg_ntd_annual_data__capital_expenses_for_expansion_of_service') }} +), + +fct_ntd_annual_data__capital_expenses_for_expansion_of_service AS ( + SELECT * + FROM staging_capital_expenses_for_expansion_of_service +) + +SELECT * FROM fct_ntd_annual_data__capital_expenses_for_expansion_of_service diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__employees_by_agency.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__employees_by_agency.sql new file mode 100644 index 0000000000..edb0b60714 --- /dev/null +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__employees_by_agency.sql @@ -0,0 +1,11 @@ +WITH staging_employees_by_agency AS ( + SELECT * + FROM {{ ref('staging', 'stg_ntd_annual_data__employees_by_agency') }} +), + +fct_ntd_annual_data__employees_by_agency AS ( + SELECT * + FROM staging_employees_by_agency +) + +SELECT * FROM fct_ntd_annual_data__employees_by_agency diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__employees_by_mode.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__employees_by_mode.sql new file mode 100644 index 0000000000..9dadf216bd --- /dev/null +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__employees_by_mode.sql @@ -0,0 +1,11 @@ +WITH staging_employees_by_mode AS ( + SELECT * + FROM {{ ref('staging', 'stg_ntd_annual_data__employees_by_mode') }} +), + +fct_ntd_annual_data__employees_by_mode AS ( + SELECT * + FROM staging_employees_by_mode +) + +SELECT * FROM fct_ntd_annual_data__employees_by_mode diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__employees_by_mode_and_employee_type.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__employees_by_mode_and_employee_type.sql new file mode 100644 index 0000000000..c160a255f9 --- /dev/null +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__employees_by_mode_and_employee_type.sql @@ -0,0 +1,11 @@ +WITH staging_employees_by_mode_and_employee_type AS ( + SELECT * + FROM {{ ref('staging', 'stg_ntd_annual_data__employees_by_mode_and_employee_type') }} +), + +fct_ntd_annual_data__employees_by_mode_and_employee_type AS ( + SELECT * + FROM staging_employees_by_mode_and_employee_type +) + +SELECT * FROM fct_ntd_annual_data__employees_by_mode_and_employee_type diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__fuel_and_energy.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__fuel_and_energy.sql new file mode 100644 index 0000000000..d6c08a615b --- /dev/null +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__fuel_and_energy.sql @@ -0,0 +1,11 @@ +WITH staging_fuel_and_energy AS ( + SELECT * + FROM {{ ref('staging', 'stg_ntd_annual_data__fuel_and_energy') }} +), + +fct_ntd_annual_data__fuel_and_energy AS ( + SELECT * + FROM staging_fuel_and_energy +) + +SELECT * FROM fct_ntd_annual_data__fuel_and_energy diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__fuel_and_energy_by_agency.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__fuel_and_energy_by_agency.sql new file mode 100644 index 0000000000..99361372e1 --- /dev/null +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__fuel_and_energy_by_agency.sql @@ -0,0 +1,11 @@ +WITH staging_fuel_and_energy_by_agency AS ( + SELECT * + FROM {{ ref('staging', 'stg_ntd_annual_data__fuel_and_energy_by_agency') }} +), + +fct_ntd_annual_data__fuel_and_energy_by_agency AS ( + SELECT * + FROM staging_fuel_and_energy_by_agency +) + +SELECT * FROM fct_ntd_annual_data__fuel_and_energy_by_agency diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__funding_sources_by_expense_type.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__funding_sources_by_expense_type.sql new file mode 100644 index 0000000000..45c339d112 --- /dev/null +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__funding_sources_by_expense_type.sql @@ -0,0 +1,11 @@ +WITH staging_funding_sources_by_expense_type AS ( + SELECT * + FROM {{ ref('staging', 'stg_ntd_annual_data__funding_sources_by_expense_type') }} +), + +fct_ntd_annual_data__funding_sources_by_expense_type AS ( + SELECT * + FROM staging_funding_sources_by_expense_type +) + +SELECT * FROM fct_ntd_annual_data__funding_sources_by_expense_type diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__funding_sources_directly_generated.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__funding_sources_directly_generated.sql new file mode 100644 index 0000000000..13bc0afc2f --- /dev/null +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__funding_sources_directly_generated.sql @@ -0,0 +1,11 @@ +WITH staging_funding_sources_directly_generated AS ( + SELECT * + FROM {{ ref('staging', 'stg_ntd_annual_data__funding_sources_directly_generated') }} +), + +fct_ntd_annual_data__funding_sources_directly_generated AS ( + SELECT * + FROM staging_funding_sources_directly_generated +) + +SELECT * FROM fct_ntd_annual_data__funding_sources_directly_generated diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__funding_sources_federal.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__funding_sources_federal.sql new file mode 100644 index 0000000000..1677e68cf1 --- /dev/null +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__funding_sources_federal.sql @@ -0,0 +1,11 @@ +WITH staging_funding_sources_federal AS ( + SELECT * + FROM {{ ref('staging', 'stg_ntd_annual_data__funding_sources_federal') }} +), + +fct_ntd_annual_data__funding_sources_federal AS ( + SELECT * + FROM staging_funding_sources_federal +) + +SELECT * FROM fct_ntd_annual_data__funding_sources_federal diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__funding_sources_local.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__funding_sources_local.sql new file mode 100644 index 0000000000..4f9181089d --- /dev/null +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__funding_sources_local.sql @@ -0,0 +1,11 @@ +WITH staging_funding_sources_local AS ( + SELECT * + FROM {{ ref('staging', 'stg_ntd_annual_data__funding_sources_local') }} +), + +fct_ntd_annual_data__funding_sources_local AS ( + SELECT * + FROM staging_funding_sources_local +) + +SELECT * FROM fct_ntd_annual_data__funding_sources_local diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__funding_sources_state.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__funding_sources_state.sql new file mode 100644 index 0000000000..3c06767126 --- /dev/null +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__funding_sources_state.sql @@ -0,0 +1,11 @@ +WITH staging_funding_sources_state AS ( + SELECT * + FROM {{ ref('staging', 'stg_ntd_annual_data__funding_sources_state') }} +), + +fct_ntd_annual_data__funding_sources_state AS ( + SELECT * + FROM staging_funding_sources_state +) + +SELECT * FROM fct_ntd_annual_data__funding_sources_state diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__funding_sources_taxes_levied_by_agency.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__funding_sources_taxes_levied_by_agency.sql new file mode 100644 index 0000000000..c60f747238 --- /dev/null +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__funding_sources_taxes_levied_by_agency.sql @@ -0,0 +1,11 @@ +WITH staging_funding_sources_taxes_levied_by_agency AS ( + SELECT * + FROM {{ ref('staging', 'stg_ntd_annual_data__funding_sources_taxes_levied_by_agency') }} +), + +fct_ntd_annual_data__funding_sources_taxes_levied_by_agency AS ( + SELECT * + FROM staging_funding_sources_taxes_levied_by_agency +) + +SELECT * FROM fct_ntd_annual_data__funding_sources_taxes_levied_by_agency diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__maintenance_facilities.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__maintenance_facilities.sql new file mode 100644 index 0000000000..dab9f99216 --- /dev/null +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__maintenance_facilities.sql @@ -0,0 +1,11 @@ +WITH staging_maintenance_facilities AS ( + SELECT * + FROM {{ ref('staging', 'stg_ntd_annual_data__maintenance_facilities') }} +), + +fct_ntd_annual_data__maintenance_facilities AS ( + SELECT * + FROM staging_maintenance_facilities +) + +SELECT * FROM fct_ntd_annual_data__maintenance_facilities diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__maintenance_facilities_by_agency.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__maintenance_facilities_by_agency.sql new file mode 100644 index 0000000000..cbe760fa85 --- /dev/null +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__maintenance_facilities_by_agency.sql @@ -0,0 +1,11 @@ +WITH staging_maintenance_facilities_by_agency AS ( + SELECT * + FROM {{ ref('staging', 'stg_ntd_annual_data__maintenance_facilities_by_agency') }} +), + +fct_ntd_annual_data__maintenance_facilities_by_agency AS ( + SELECT * + FROM staging_maintenance_facilities_by_agency +) + +SELECT * FROM fct_ntd_annual_data__maintenance_facilities_by_agency diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__metrics.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__metrics.sql new file mode 100644 index 0000000000..ad3bf8883a --- /dev/null +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__metrics.sql @@ -0,0 +1,11 @@ +WITH staging_metrics AS ( + SELECT * + FROM {{ ref('staging', 'stg_ntd_annual_data__metrics') }} +), + +fct_ntd_annual_data__metrics AS ( + SELECT * + FROM staging_metrics +) + +SELECT * FROM fct_ntd_annual_data__metrics diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__operating_expenses_by_function.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__operating_expenses_by_function.sql new file mode 100644 index 0000000000..3c24f07681 --- /dev/null +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__operating_expenses_by_function.sql @@ -0,0 +1,11 @@ +WITH staging_operating_expenses_by_function AS ( + SELECT * + FROM {{ ref('staging', 'stg_ntd_annual_data__operating_expenses_by_function') }} +), + +fct_ntd_annual_data__operating_expenses_by_function AS ( + SELECT * + FROM staging_operating_expenses_by_function +) + +SELECT * FROM fct_ntd_annual_data__operating_expenses_by_function diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__operating_expenses_by_function_and_agency.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__operating_expenses_by_function_and_agency.sql new file mode 100644 index 0000000000..98546f8f33 --- /dev/null +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__operating_expenses_by_function_and_agency.sql @@ -0,0 +1,11 @@ +WITH staging_operating_expenses_by_function_and_agency AS ( + SELECT * + FROM {{ ref('staging', 'stg_ntd_annual_data__operating_expenses_by_function_and_agency') }} +), + +fct_ntd_annual_data__operating_expenses_by_function_and_agency AS ( + SELECT * + FROM staging_operating_expenses_by_function_and_agency +) + +SELECT * FROM fct_ntd_annual_data__operating_expenses_by_function_and_agency diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__operating_expenses_by_type.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__operating_expenses_by_type.sql new file mode 100644 index 0000000000..9cd19136e4 --- /dev/null +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__operating_expenses_by_type.sql @@ -0,0 +1,11 @@ +WITH staging_operating_expenses_by_type AS ( + SELECT * + FROM {{ ref('staging', 'stg_ntd_annual_data__operating_expenses_by_type') }} +), + +fct_ntd_annual_data__operating_expenses_by_type AS ( + SELECT * + FROM staging_operating_expenses_by_type +) + +SELECT * FROM fct_ntd_annual_data__operating_expenses_by_type diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__operating_expenses_by_type_and_agency.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__operating_expenses_by_type_and_agency.sql new file mode 100644 index 0000000000..863ff44f13 --- /dev/null +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__operating_expenses_by_type_and_agency.sql @@ -0,0 +1,11 @@ +WITH staging_operating_expenses_by_type_and_agency AS ( + SELECT * + FROM {{ ref('staging', 'stg_ntd_annual_data__operating_expenses_by_type_and_agency') }} +), + +fct_ntd_annual_data__operating_expenses_by_type_and_agency AS ( + SELECT * + FROM staging_operating_expenses_by_type_and_agency +) + +SELECT * FROM fct_ntd_annual_data__operating_expenses_by_type_and_agency diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__service_by_agency.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__service_by_agency.sql new file mode 100644 index 0000000000..d972b133d6 --- /dev/null +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__service_by_agency.sql @@ -0,0 +1,11 @@ +WITH staging_service_by_agency AS ( + SELECT * + FROM {{ ref('staging', 'stg_ntd_annual_data__service_by_agency') }} +), + +fct_ntd_annual_data__service_by_agency AS ( + SELECT * + FROM staging_service_by_agency +) + +SELECT * FROM fct_ntd_annual_data__service_by_agency diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__service_by_mode.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__service_by_mode.sql new file mode 100644 index 0000000000..aaaedb8bd7 --- /dev/null +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__service_by_mode.sql @@ -0,0 +1,11 @@ +WITH staging_service_by_mode AS ( + SELECT * + FROM {{ ref('staging', 'stg_ntd_annual_data__service_by_mode') }} +), + +fct_ntd_annual_data__service_by_mode AS ( + SELECT * + FROM staging_service_by_mode +) + +SELECT * FROM fct_ntd_annual_data__service_by_mode diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__service_by_mode_and_time_period.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__service_by_mode_and_time_period.sql new file mode 100644 index 0000000000..6351ff1e92 --- /dev/null +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__service_by_mode_and_time_period.sql @@ -0,0 +1,11 @@ +WITH staging_service_by_mode_and_time_period AS ( + SELECT * + FROM {{ ref('staging', 'stg_ntd_annual_data__service_by_mode_and_time_period') }} +), + +fct_ntd_annual_data__service_by_mode_and_time_period AS ( + SELECT * + FROM staging_service_by_mode_and_time_period +) + +SELECT * FROM fct_ntd_annual_data__service_by_mode_and_time_period diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__stations_and_facilities_by_agency_and_facility_type.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__stations_and_facilities_by_agency_and_facility_type.sql new file mode 100644 index 0000000000..ae84bb8f59 --- /dev/null +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__stations_and_facilities_by_agency_and_facility_type.sql @@ -0,0 +1,11 @@ +WITH staging_stations_and_facilities_by_agency_and_facility_type AS ( + SELECT * + FROM {{ ref('staging', 'stg_ntd_annual_data__stations_and_facilities_by_agency_and_facility_type') }} +), + +fct_ntd_annual_data__stations_and_facilities_by_agency_and_facility_type AS ( + SELECT * + FROM staging_stations_and_facilities_by_agency_and_facility_type +) + +SELECT * FROM fct_ntd_annual_data__stations_and_facilities_by_agency_and_facility_type diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__stations_by_mode_and_age.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__stations_by_mode_and_age.sql new file mode 100644 index 0000000000..151985cc64 --- /dev/null +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__stations_by_mode_and_age.sql @@ -0,0 +1,11 @@ +WITH staging_stations_by_mode_and_age AS ( + SELECT * + FROM {{ ref('staging', 'stg_ntd_annual_data__stations_by_mode_and_age') }} +), + +fct_ntd_annual_data__stations_by_mode_and_age AS ( + SELECT * + FROM staging_stations_by_mode_and_age +) + +SELECT * FROM fct_ntd_annual_data__stations_by_mode_and_age diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__track_and_roadway_by_agency.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__track_and_roadway_by_agency.sql new file mode 100644 index 0000000000..184898d094 --- /dev/null +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__track_and_roadway_by_agency.sql @@ -0,0 +1,11 @@ +WITH staging_track_and_roadway_by_agency AS ( + SELECT * + FROM {{ ref('staging', 'stg_ntd_annual_data__track_and_roadway_by_agency') }} +), + +fct_ntd_annual_data__track_and_roadway_by_agency AS ( + SELECT * + FROM staging_track_and_roadway_by_agency +) + +SELECT * FROM fct_ntd_annual_data__track_and_roadway_by_agency diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__track_and_roadway_by_mode.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__track_and_roadway_by_mode.sql new file mode 100644 index 0000000000..8581f0ba66 --- /dev/null +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__track_and_roadway_by_mode.sql @@ -0,0 +1,11 @@ +WITH staging_track_and_roadway_by_mode AS ( + SELECT * + FROM {{ ref('staging', 'stg_ntd_annual_data__track_and_roadway_by_mode') }} +), + +fct_ntd_annual_data__track_and_roadway_by_mode AS ( + SELECT * + FROM staging_track_and_roadway_by_mode +) + +SELECT * FROM fct_ntd_annual_data__track_and_roadway_by_mode diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__track_and_roadway_guideway_age_distribution.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__track_and_roadway_guideway_age_distribution.sql new file mode 100644 index 0000000000..7bc27ff3f1 --- /dev/null +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__track_and_roadway_guideway_age_distribution.sql @@ -0,0 +1,11 @@ +WITH staging_track_and_roadway_guideway_age_distribution AS ( + SELECT * + FROM {{ ref('staging', 'stg_ntd_annual_data__track_and_roadway_guideway_age_distribution') }} +), + +fct_ntd_annual_data__track_and_roadway_guideway_age_distribution AS ( + SELECT * + FROM staging_track_and_roadway_guideway_age_distribution +) + +SELECT * FROM fct_ntd_annual_data__track_and_roadway_guideway_age_distribution diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__vehicles_age_distribution.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__vehicles_age_distribution.sql new file mode 100644 index 0000000000..41ba9bc269 --- /dev/null +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__vehicles_age_distribution.sql @@ -0,0 +1,11 @@ +WITH staging_vehicles_age_distribution AS ( + SELECT * + FROM {{ ref('staging', 'stg_ntd_annual_data__vehicles_age_distribution') }} +), + +fct_ntd_annual_data__vehicles_age_distribution AS ( + SELECT * + FROM staging_vehicles_age_distribution +) + +SELECT * FROM fct_ntd_annual_data__vehicles_age_distribution diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__vehicles_type_count_by_agency.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__vehicles_type_count_by_agency.sql new file mode 100644 index 0000000000..bbee687c47 --- /dev/null +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__vehicles_type_count_by_agency.sql @@ -0,0 +1,11 @@ +WITH staging_vehicles_type_count_by_agency AS ( + SELECT * + FROM {{ ref('staging', 'stg_ntd_annual_data__vehicles_type_count_by_agency') }} +), + +fct_ntd_annual_data__vehicles_type_count_by_agency AS ( + SELECT * + FROM staging_vehicles_type_count_by_agency +) + +SELECT * FROM fct_ntd_annual_data__vehicles_type_count_by_agency From 7d312098e3c34cea5de8f0564da6020ad90d5b66 Mon Sep 17 00:00:00 2001 From: Charles Costanzo Date: Thu, 14 Nov 2024 16:48:20 -0500 Subject: [PATCH 2/6] test commit --- .../fct_ntd_annual_data__breakdowns_by_agency.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__breakdowns_by_agency.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__breakdowns_by_agency.sql index a0041f6982..c9d9ea3803 100644 --- a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__breakdowns_by_agency.sql +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__breakdowns_by_agency.sql @@ -2,7 +2,7 @@ WITH staging_breakdowns_by_agency AS ( SELECT * FROM {{ ref('staging', 'stg_ntd_annual_data__breakdowns_by_agency') }} ), - +-- test fct_ntd_annual_data__breakdowns_by_agency AS ( SELECT * FROM staging_breakdowns_by_agency From 94c79e5e9c8ee38ae86dc4888fc4386b78fd24ef Mon Sep 17 00:00:00 2001 From: Charles Costanzo Date: Thu, 21 Nov 2024 16:56:13 -0500 Subject: [PATCH 3/6] add most recent dbt mart schemas to dbt profile --- warehouse/dbt_project.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/warehouse/dbt_project.yml b/warehouse/dbt_project.yml index be4c05713f..222b9f741c 100644 --- a/warehouse/dbt_project.yml +++ b/warehouse/dbt_project.yml @@ -69,3 +69,7 @@ models: schema: mart_benefits ntd_validation: schema: mart_ntd_validation + ntd_fct_annual: + schema: mart_ntd_fct_annual + ntd_ridership: + schema: mart_ntd_ridership From a825e5b685efc7b67ec7f38a95966b1b87bd1a87 Mon Sep 17 00:00:00 2001 From: Charles Costanzo Date: Fri, 22 Nov 2024 17:21:34 -0500 Subject: [PATCH 4/6] fixed mart model sql to correctly reference stagin tables, remove unreferenced config --- warehouse/dbt_project.yml | 2 -- .../mart/ntd_fct_annual/fct_ntd_annual_data__breakdowns.sql | 2 +- .../fct_ntd_annual_data__breakdowns_by_agency.sql | 4 ++-- .../fct_ntd_annual_data__capital_expenses_by_capital_use.sql | 2 +- .../fct_ntd_annual_data__capital_expenses_by_mode.sql | 2 +- ...ntd_annual_data__capital_expenses_for_existing_service.sql | 2 +- ...annual_data__capital_expenses_for_expansion_of_service.sql | 2 +- .../fct_ntd_annual_data__employees_by_agency.sql | 2 +- .../ntd_fct_annual/fct_ntd_annual_data__employees_by_mode.sql | 2 +- ...t_ntd_annual_data__employees_by_mode_and_employee_type.sql | 2 +- .../ntd_fct_annual/fct_ntd_annual_data__fuel_and_energy.sql | 2 +- .../fct_ntd_annual_data__fuel_and_energy_by_agency.sql | 2 +- .../fct_ntd_annual_data__funding_sources_by_expense_type.sql | 2 +- ...ct_ntd_annual_data__funding_sources_directly_generated.sql | 2 +- .../fct_ntd_annual_data__funding_sources_federal.sql | 2 +- .../fct_ntd_annual_data__funding_sources_local.sql | 2 +- .../fct_ntd_annual_data__funding_sources_state.sql | 2 +- ...td_annual_data__funding_sources_taxes_levied_by_agency.sql | 2 +- .../fct_ntd_annual_data__maintenance_facilities.sql | 2 +- .../fct_ntd_annual_data__maintenance_facilities_by_agency.sql | 2 +- .../mart/ntd_fct_annual/fct_ntd_annual_data__metrics.sql | 2 +- .../fct_ntd_annual_data__operating_expenses_by_function.sql | 2 +- ...annual_data__operating_expenses_by_function_and_agency.sql | 2 +- .../fct_ntd_annual_data__operating_expenses_by_type.sql | 2 +- ...ntd_annual_data__operating_expenses_by_type_and_agency.sql | 2 +- .../ntd_fct_annual/fct_ntd_annual_data__service_by_agency.sql | 2 +- .../ntd_fct_annual/fct_ntd_annual_data__service_by_mode.sql | 2 +- .../fct_ntd_annual_data__service_by_mode_and_time_period.sql | 2 +- ...a__stations_and_facilities_by_agency_and_facility_type.sql | 2 +- .../fct_ntd_annual_data__stations_by_mode_and_age.sql | 2 +- .../fct_ntd_annual_data__track_and_roadway_by_agency.sql | 2 +- .../fct_ntd_annual_data__track_and_roadway_by_mode.sql | 2 +- ...nual_data__track_and_roadway_guideway_age_distribution.sql | 2 +- .../fct_ntd_annual_data__vehicles_age_distribution.sql | 2 +- .../fct_ntd_annual_data__vehicles_type_count_by_agency.sql | 2 +- 35 files changed, 35 insertions(+), 37 deletions(-) diff --git a/warehouse/dbt_project.yml b/warehouse/dbt_project.yml index 222b9f741c..74bb12a0c6 100644 --- a/warehouse/dbt_project.yml +++ b/warehouse/dbt_project.yml @@ -71,5 +71,3 @@ models: schema: mart_ntd_validation ntd_fct_annual: schema: mart_ntd_fct_annual - ntd_ridership: - schema: mart_ntd_ridership diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__breakdowns.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__breakdowns.sql index 9197957d18..a860034665 100644 --- a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__breakdowns.sql +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__breakdowns.sql @@ -1,6 +1,6 @@ WITH staging_breakdowns AS ( SELECT * - FROM {{ ref('staging', 'stg_ntd_annual_data__breakdowns') }} + FROM {{ ref('stg_ntd_annual_data__breakdowns') }} ), fct_ntd_annual_data__breakdowns AS ( diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__breakdowns_by_agency.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__breakdowns_by_agency.sql index c9d9ea3803..ffdf747d28 100644 --- a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__breakdowns_by_agency.sql +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__breakdowns_by_agency.sql @@ -1,8 +1,8 @@ WITH staging_breakdowns_by_agency AS ( SELECT * - FROM {{ ref('staging', 'stg_ntd_annual_data__breakdowns_by_agency') }} + FROM {{ ref('stg_ntd_annual_data__breakdowns_by_agency') }} ), --- test + fct_ntd_annual_data__breakdowns_by_agency AS ( SELECT * FROM staging_breakdowns_by_agency diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__capital_expenses_by_capital_use.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__capital_expenses_by_capital_use.sql index 4d0ad31f5a..82882ea9f1 100644 --- a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__capital_expenses_by_capital_use.sql +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__capital_expenses_by_capital_use.sql @@ -1,6 +1,6 @@ WITH staging_capital_expenses_by_capital_use AS ( SELECT * - FROM {{ ref('staging', 'stg_ntd_annual_data__capital_expenses_by_capital_use') }} + FROM {{ ref('stg_ntd_annual_data__capital_expenses_by_capital_use') }} ), fct_ntd_annual_data__capital_expenses_by_capital_use AS ( diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__capital_expenses_by_mode.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__capital_expenses_by_mode.sql index 9fbd696d76..96457a6c8b 100644 --- a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__capital_expenses_by_mode.sql +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__capital_expenses_by_mode.sql @@ -1,6 +1,6 @@ WITH staging_capital_expenses_by_mode AS ( SELECT * - FROM {{ ref('staging', 'stg_ntd_annual_data__capital_expenses_by_mode') }} + FROM {{ ref('stg_ntd_annual_data__capital_expenses_by_mode') }} ), fct_ntd_annual_data__capital_expenses_by_mode AS ( diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__capital_expenses_for_existing_service.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__capital_expenses_for_existing_service.sql index a78597742b..d219716996 100644 --- a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__capital_expenses_for_existing_service.sql +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__capital_expenses_for_existing_service.sql @@ -1,6 +1,6 @@ WITH staging_capital_expenses_for_existing_service AS ( SELECT * - FROM {{ ref('staging', 'stg_ntd_annual_data__capital_expenses_for_existing_service') }} + FROM {{ ref('stg_ntd_annual_data__capital_expenses_for_existing_service') }} ), fct_ntd_annual_data__capital_expenses_for_existing_service AS ( diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__capital_expenses_for_expansion_of_service.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__capital_expenses_for_expansion_of_service.sql index 6ffd93a2e7..ca2a7b72be 100644 --- a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__capital_expenses_for_expansion_of_service.sql +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__capital_expenses_for_expansion_of_service.sql @@ -1,6 +1,6 @@ WITH staging_capital_expenses_for_expansion_of_service AS ( SELECT * - FROM {{ ref('staging', 'stg_ntd_annual_data__capital_expenses_for_expansion_of_service') }} + FROM {{ ref('stg_ntd_annual_data__capital_expenses_for_expansion_of_service') }} ), fct_ntd_annual_data__capital_expenses_for_expansion_of_service AS ( diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__employees_by_agency.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__employees_by_agency.sql index edb0b60714..1b74d3bf79 100644 --- a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__employees_by_agency.sql +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__employees_by_agency.sql @@ -1,6 +1,6 @@ WITH staging_employees_by_agency AS ( SELECT * - FROM {{ ref('staging', 'stg_ntd_annual_data__employees_by_agency') }} + FROM {{ ref('stg_ntd_annual_data__employees_by_agency') }} ), fct_ntd_annual_data__employees_by_agency AS ( diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__employees_by_mode.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__employees_by_mode.sql index 9dadf216bd..fac6d6aa76 100644 --- a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__employees_by_mode.sql +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__employees_by_mode.sql @@ -1,6 +1,6 @@ WITH staging_employees_by_mode AS ( SELECT * - FROM {{ ref('staging', 'stg_ntd_annual_data__employees_by_mode') }} + FROM {{ ref('stg_ntd_annual_data__employees_by_mode') }} ), fct_ntd_annual_data__employees_by_mode AS ( diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__employees_by_mode_and_employee_type.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__employees_by_mode_and_employee_type.sql index c160a255f9..01efa4bcaa 100644 --- a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__employees_by_mode_and_employee_type.sql +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__employees_by_mode_and_employee_type.sql @@ -1,6 +1,6 @@ WITH staging_employees_by_mode_and_employee_type AS ( SELECT * - FROM {{ ref('staging', 'stg_ntd_annual_data__employees_by_mode_and_employee_type') }} + FROM {{ ref('stg_ntd_annual_data__employees_by_mode_and_employee_type') }} ), fct_ntd_annual_data__employees_by_mode_and_employee_type AS ( diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__fuel_and_energy.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__fuel_and_energy.sql index d6c08a615b..fbb795d0ae 100644 --- a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__fuel_and_energy.sql +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__fuel_and_energy.sql @@ -1,6 +1,6 @@ WITH staging_fuel_and_energy AS ( SELECT * - FROM {{ ref('staging', 'stg_ntd_annual_data__fuel_and_energy') }} + FROM {{ ref('stg_ntd_annual_data__fuel_and_energy') }} ), fct_ntd_annual_data__fuel_and_energy AS ( diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__fuel_and_energy_by_agency.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__fuel_and_energy_by_agency.sql index 99361372e1..79f1f6e099 100644 --- a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__fuel_and_energy_by_agency.sql +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__fuel_and_energy_by_agency.sql @@ -1,6 +1,6 @@ WITH staging_fuel_and_energy_by_agency AS ( SELECT * - FROM {{ ref('staging', 'stg_ntd_annual_data__fuel_and_energy_by_agency') }} + FROM {{ ref('stg_ntd_annual_data__fuel_and_energy_by_agency') }} ), fct_ntd_annual_data__fuel_and_energy_by_agency AS ( diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__funding_sources_by_expense_type.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__funding_sources_by_expense_type.sql index 45c339d112..0943e513ef 100644 --- a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__funding_sources_by_expense_type.sql +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__funding_sources_by_expense_type.sql @@ -1,6 +1,6 @@ WITH staging_funding_sources_by_expense_type AS ( SELECT * - FROM {{ ref('staging', 'stg_ntd_annual_data__funding_sources_by_expense_type') }} + FROM {{ ref('stg_ntd_annual_data__funding_sources_by_expense_type') }} ), fct_ntd_annual_data__funding_sources_by_expense_type AS ( diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__funding_sources_directly_generated.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__funding_sources_directly_generated.sql index 13bc0afc2f..93c704f122 100644 --- a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__funding_sources_directly_generated.sql +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__funding_sources_directly_generated.sql @@ -1,6 +1,6 @@ WITH staging_funding_sources_directly_generated AS ( SELECT * - FROM {{ ref('staging', 'stg_ntd_annual_data__funding_sources_directly_generated') }} + FROM {{ ref('stg_ntd_annual_data__funding_sources_directly_generated') }} ), fct_ntd_annual_data__funding_sources_directly_generated AS ( diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__funding_sources_federal.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__funding_sources_federal.sql index 1677e68cf1..26b07b825d 100644 --- a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__funding_sources_federal.sql +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__funding_sources_federal.sql @@ -1,6 +1,6 @@ WITH staging_funding_sources_federal AS ( SELECT * - FROM {{ ref('staging', 'stg_ntd_annual_data__funding_sources_federal') }} + FROM {{ ref('stg_ntd_annual_data__funding_sources_federal') }} ), fct_ntd_annual_data__funding_sources_federal AS ( diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__funding_sources_local.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__funding_sources_local.sql index 4f9181089d..fbab02f91e 100644 --- a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__funding_sources_local.sql +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__funding_sources_local.sql @@ -1,6 +1,6 @@ WITH staging_funding_sources_local AS ( SELECT * - FROM {{ ref('staging', 'stg_ntd_annual_data__funding_sources_local') }} + FROM {{ ref('stg_ntd_annual_data__funding_sources_local') }} ), fct_ntd_annual_data__funding_sources_local AS ( diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__funding_sources_state.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__funding_sources_state.sql index 3c06767126..128a3e581c 100644 --- a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__funding_sources_state.sql +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__funding_sources_state.sql @@ -1,6 +1,6 @@ WITH staging_funding_sources_state AS ( SELECT * - FROM {{ ref('staging', 'stg_ntd_annual_data__funding_sources_state') }} + FROM {{ ref('stg_ntd_annual_data__funding_sources_state') }} ), fct_ntd_annual_data__funding_sources_state AS ( diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__funding_sources_taxes_levied_by_agency.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__funding_sources_taxes_levied_by_agency.sql index c60f747238..4585ac93f8 100644 --- a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__funding_sources_taxes_levied_by_agency.sql +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__funding_sources_taxes_levied_by_agency.sql @@ -1,6 +1,6 @@ WITH staging_funding_sources_taxes_levied_by_agency AS ( SELECT * - FROM {{ ref('staging', 'stg_ntd_annual_data__funding_sources_taxes_levied_by_agency') }} + FROM {{ ref('stg_ntd_annual_data__funding_sources_taxes_levied_by_agency') }} ), fct_ntd_annual_data__funding_sources_taxes_levied_by_agency AS ( diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__maintenance_facilities.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__maintenance_facilities.sql index dab9f99216..cba0055eb4 100644 --- a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__maintenance_facilities.sql +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__maintenance_facilities.sql @@ -1,6 +1,6 @@ WITH staging_maintenance_facilities AS ( SELECT * - FROM {{ ref('staging', 'stg_ntd_annual_data__maintenance_facilities') }} + FROM {{ ref('stg_ntd_annual_data__maintenance_facilities') }} ), fct_ntd_annual_data__maintenance_facilities AS ( diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__maintenance_facilities_by_agency.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__maintenance_facilities_by_agency.sql index cbe760fa85..bd119a2e74 100644 --- a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__maintenance_facilities_by_agency.sql +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__maintenance_facilities_by_agency.sql @@ -1,6 +1,6 @@ WITH staging_maintenance_facilities_by_agency AS ( SELECT * - FROM {{ ref('staging', 'stg_ntd_annual_data__maintenance_facilities_by_agency') }} + FROM {{ ref('stg_ntd_annual_data__maintenance_facilities_by_agency') }} ), fct_ntd_annual_data__maintenance_facilities_by_agency AS ( diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__metrics.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__metrics.sql index ad3bf8883a..580cddef53 100644 --- a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__metrics.sql +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__metrics.sql @@ -1,6 +1,6 @@ WITH staging_metrics AS ( SELECT * - FROM {{ ref('staging', 'stg_ntd_annual_data__metrics') }} + FROM {{ ref('stg_ntd_annual_data__metrics') }} ), fct_ntd_annual_data__metrics AS ( diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__operating_expenses_by_function.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__operating_expenses_by_function.sql index 3c24f07681..7966560391 100644 --- a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__operating_expenses_by_function.sql +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__operating_expenses_by_function.sql @@ -1,6 +1,6 @@ WITH staging_operating_expenses_by_function AS ( SELECT * - FROM {{ ref('staging', 'stg_ntd_annual_data__operating_expenses_by_function') }} + FROM {{ ref('stg_ntd_annual_data__operating_expenses_by_function') }} ), fct_ntd_annual_data__operating_expenses_by_function AS ( diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__operating_expenses_by_function_and_agency.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__operating_expenses_by_function_and_agency.sql index 98546f8f33..694367bcbe 100644 --- a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__operating_expenses_by_function_and_agency.sql +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__operating_expenses_by_function_and_agency.sql @@ -1,6 +1,6 @@ WITH staging_operating_expenses_by_function_and_agency AS ( SELECT * - FROM {{ ref('staging', 'stg_ntd_annual_data__operating_expenses_by_function_and_agency') }} + FROM {{ ref('stg_ntd_annual_data__operating_expenses_by_function_and_agency') }} ), fct_ntd_annual_data__operating_expenses_by_function_and_agency AS ( diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__operating_expenses_by_type.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__operating_expenses_by_type.sql index 9cd19136e4..8a8beb8831 100644 --- a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__operating_expenses_by_type.sql +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__operating_expenses_by_type.sql @@ -1,6 +1,6 @@ WITH staging_operating_expenses_by_type AS ( SELECT * - FROM {{ ref('staging', 'stg_ntd_annual_data__operating_expenses_by_type') }} + FROM {{ ref('stg_ntd_annual_data__operating_expenses_by_type') }} ), fct_ntd_annual_data__operating_expenses_by_type AS ( diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__operating_expenses_by_type_and_agency.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__operating_expenses_by_type_and_agency.sql index 863ff44f13..6400320d13 100644 --- a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__operating_expenses_by_type_and_agency.sql +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__operating_expenses_by_type_and_agency.sql @@ -1,6 +1,6 @@ WITH staging_operating_expenses_by_type_and_agency AS ( SELECT * - FROM {{ ref('staging', 'stg_ntd_annual_data__operating_expenses_by_type_and_agency') }} + FROM {{ ref('stg_ntd_annual_data__operating_expenses_by_type_and_agency') }} ), fct_ntd_annual_data__operating_expenses_by_type_and_agency AS ( diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__service_by_agency.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__service_by_agency.sql index d972b133d6..4de6f4c445 100644 --- a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__service_by_agency.sql +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__service_by_agency.sql @@ -1,6 +1,6 @@ WITH staging_service_by_agency AS ( SELECT * - FROM {{ ref('staging', 'stg_ntd_annual_data__service_by_agency') }} + FROM {{ ref('stg_ntd_annual_data__service_by_agency') }} ), fct_ntd_annual_data__service_by_agency AS ( diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__service_by_mode.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__service_by_mode.sql index aaaedb8bd7..a1775331a8 100644 --- a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__service_by_mode.sql +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__service_by_mode.sql @@ -1,6 +1,6 @@ WITH staging_service_by_mode AS ( SELECT * - FROM {{ ref('staging', 'stg_ntd_annual_data__service_by_mode') }} + FROM {{ ref('stg_ntd_annual_data__service_by_mode') }} ), fct_ntd_annual_data__service_by_mode AS ( diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__service_by_mode_and_time_period.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__service_by_mode_and_time_period.sql index 6351ff1e92..bfe4a47d9f 100644 --- a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__service_by_mode_and_time_period.sql +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__service_by_mode_and_time_period.sql @@ -1,6 +1,6 @@ WITH staging_service_by_mode_and_time_period AS ( SELECT * - FROM {{ ref('staging', 'stg_ntd_annual_data__service_by_mode_and_time_period') }} + FROM {{ ref('stg_ntd_annual_data__service_by_mode_and_time_period') }} ), fct_ntd_annual_data__service_by_mode_and_time_period AS ( diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__stations_and_facilities_by_agency_and_facility_type.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__stations_and_facilities_by_agency_and_facility_type.sql index ae84bb8f59..ec613e72dc 100644 --- a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__stations_and_facilities_by_agency_and_facility_type.sql +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__stations_and_facilities_by_agency_and_facility_type.sql @@ -1,6 +1,6 @@ WITH staging_stations_and_facilities_by_agency_and_facility_type AS ( SELECT * - FROM {{ ref('staging', 'stg_ntd_annual_data__stations_and_facilities_by_agency_and_facility_type') }} + FROM {{ ref('stg_ntd_annual_data__stations_and_facilities_by_agency_and_facility_type') }} ), fct_ntd_annual_data__stations_and_facilities_by_agency_and_facility_type AS ( diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__stations_by_mode_and_age.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__stations_by_mode_and_age.sql index 151985cc64..3c84a410a9 100644 --- a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__stations_by_mode_and_age.sql +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__stations_by_mode_and_age.sql @@ -1,6 +1,6 @@ WITH staging_stations_by_mode_and_age AS ( SELECT * - FROM {{ ref('staging', 'stg_ntd_annual_data__stations_by_mode_and_age') }} + FROM {{ ref('stg_ntd_annual_data__stations_by_mode_and_age') }} ), fct_ntd_annual_data__stations_by_mode_and_age AS ( diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__track_and_roadway_by_agency.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__track_and_roadway_by_agency.sql index 184898d094..d1bb760745 100644 --- a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__track_and_roadway_by_agency.sql +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__track_and_roadway_by_agency.sql @@ -1,6 +1,6 @@ WITH staging_track_and_roadway_by_agency AS ( SELECT * - FROM {{ ref('staging', 'stg_ntd_annual_data__track_and_roadway_by_agency') }} + FROM {{ ref('stg_ntd_annual_data__track_and_roadway_by_agency') }} ), fct_ntd_annual_data__track_and_roadway_by_agency AS ( diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__track_and_roadway_by_mode.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__track_and_roadway_by_mode.sql index 8581f0ba66..2f60b8bfe2 100644 --- a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__track_and_roadway_by_mode.sql +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__track_and_roadway_by_mode.sql @@ -1,6 +1,6 @@ WITH staging_track_and_roadway_by_mode AS ( SELECT * - FROM {{ ref('staging', 'stg_ntd_annual_data__track_and_roadway_by_mode') }} + FROM {{ ref('stg_ntd_annual_data__track_and_roadway_by_mode') }} ), fct_ntd_annual_data__track_and_roadway_by_mode AS ( diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__track_and_roadway_guideway_age_distribution.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__track_and_roadway_guideway_age_distribution.sql index 7bc27ff3f1..5c1a4af5cf 100644 --- a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__track_and_roadway_guideway_age_distribution.sql +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__track_and_roadway_guideway_age_distribution.sql @@ -1,6 +1,6 @@ WITH staging_track_and_roadway_guideway_age_distribution AS ( SELECT * - FROM {{ ref('staging', 'stg_ntd_annual_data__track_and_roadway_guideway_age_distribution') }} + FROM {{ ref('stg_ntd_annual_data__track_and_roadway_guideway_age_distribution') }} ), fct_ntd_annual_data__track_and_roadway_guideway_age_distribution AS ( diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__vehicles_age_distribution.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__vehicles_age_distribution.sql index 41ba9bc269..7af715712f 100644 --- a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__vehicles_age_distribution.sql +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__vehicles_age_distribution.sql @@ -1,6 +1,6 @@ WITH staging_vehicles_age_distribution AS ( SELECT * - FROM {{ ref('staging', 'stg_ntd_annual_data__vehicles_age_distribution') }} + FROM {{ ref('stg_ntd_annual_data__vehicles_age_distribution') }} ), fct_ntd_annual_data__vehicles_age_distribution AS ( diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__vehicles_type_count_by_agency.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__vehicles_type_count_by_agency.sql index bbee687c47..dd93cce541 100644 --- a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__vehicles_type_count_by_agency.sql +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__vehicles_type_count_by_agency.sql @@ -1,6 +1,6 @@ WITH staging_vehicles_type_count_by_agency AS ( SELECT * - FROM {{ ref('staging', 'stg_ntd_annual_data__vehicles_type_count_by_agency') }} + FROM {{ ref('stg_ntd_annual_data__vehicles_type_count_by_agency') }} ), fct_ntd_annual_data__vehicles_type_count_by_agency AS ( From 1de4a2ce60efca5cfe0002117c9ddffa0d32f4d9 Mon Sep 17 00:00:00 2001 From: Charles Costanzo Date: Fri, 22 Nov 2024 17:37:21 -0500 Subject: [PATCH 5/6] removed unused common fields in yml --- .../ntd_fct_annual/_mart_ntd_fct_annual.yml | 65 ------------------- 1 file changed, 65 deletions(-) diff --git a/warehouse/models/mart/ntd_fct_annual/_mart_ntd_fct_annual.yml b/warehouse/models/mart/ntd_fct_annual/_mart_ntd_fct_annual.yml index 223dfdb349..fb3446fb04 100644 --- a/warehouse/models/mart/ntd_fct_annual/_mart_ntd_fct_annual.yml +++ b/warehouse/models/mart/ntd_fct_annual/_mart_ntd_fct_annual.yml @@ -1,70 +1,5 @@ version: 2 -x-common-fields: - - &ntd_id - name: ntd_id - description: '{{ doc("ntd_id") }}' - - &agency - name: agency - description: '{{ doc("ntd_agency") }}' - - &ntd_legacy_id - name: ntd_legacy_id - description: '{{ doc("ntd_legacy_id") }}' - - &report_year - name: report_year - description: '{{ doc("ntd_report_year") }}' - - &reporter_type - name: reporter_type - description: '{{ doc("ntd_reporter_type") }}' - - &organization_type - name: organization_type - description: '{{ doc("ntd_organization_type") }}' - - &city - name: city - description: '{{ doc("ntd_city") }}' - - &state - name: state - description: '{{ doc("ntd_state") }}' - - &primary_uza_code - name: primary_uza_code - description: '{{ doc("ntd_primary_uza_code") }}' - - &primary_uza_name - name: primary_uza_name - description: '{{ doc("ntd_primary_uza_name") }}' - - &primary_uza_area_sq_miles - name: primary_uza_area_sq_miles - description: '{{ doc("ntd_primary_uza_area_sq_miles") }}' - - &primary_uza_population - name: primary_uza_population - description: '{{ doc("ntd_primary_uza_population") }}' - - &service_area_population - name: service_area_population - description: '{{ doc("ntd_service_area_population") }}' - - &service_area_sq_miles - name: service_area_sq_miles - description: '{{ doc("ntd_service_area_sq_miles") }}' - - &type_of_service - name: type_of_service - description: '{{ doc("ntd_type_of_service") }}' - - &mode - name: mode - description: '{{ doc("ntd_mode") }}' - - &mode_name - name: mode_name - description: '{{ doc("ntd_mode_name") }}' - - &time_period - name: time_period - description: '{{ doc("ntd_time_period") }}' - - &questionable_data - name: questionable_data - description: '{{ doc("ntd_questionable_data") }}' - - &agency_voms - name: agency_voms - description: '{{ doc("ntd_agency_voms") }}' - - &actual_vehicle_hours - name: actual_vehicle_hours - description: '{{ doc("ntd_actual_vehicle_hours") }}' - models: - name: fct_ntd_annual_data__stations_and_facilities_by_agency_and_facility_type - name: fct_ntd_annual_data__stations_by_mode_and_age From df24ca5761c67b86fa15dda978a9a506585faef9 Mon Sep 17 00:00:00 2001 From: Charles Costanzo Date: Fri, 22 Nov 2024 17:41:54 -0500 Subject: [PATCH 6/6] list models in alphabetical order in yml --- .../ntd_fct_annual/_mart_ntd_fct_annual.yml | 54 +++++++++---------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/warehouse/models/mart/ntd_fct_annual/_mart_ntd_fct_annual.yml b/warehouse/models/mart/ntd_fct_annual/_mart_ntd_fct_annual.yml index fb3446fb04..21dec5a337 100644 --- a/warehouse/models/mart/ntd_fct_annual/_mart_ntd_fct_annual.yml +++ b/warehouse/models/mart/ntd_fct_annual/_mart_ntd_fct_annual.yml @@ -1,37 +1,37 @@ version: 2 models: - - name: fct_ntd_annual_data__stations_and_facilities_by_agency_and_facility_type - - name: fct_ntd_annual_data__stations_by_mode_and_age + - name: fct_ntd_annual_data__breakdowns + - name: fct_ntd_annual_data__breakdowns_by_agency + - name: fct_ntd_annual_data__capital_expenses_by_capital_use + - name: fct_ntd_annual_data__capital_expenses_by_mode + - name: fct_ntd_annual_data__capital_expenses_for_existing_service + - name: fct_ntd_annual_data__capital_expenses_for_expansion_of_service + - name: fct_ntd_annual_data__employees_by_agency + - name: fct_ntd_annual_data__employees_by_mode + - name: fct_ntd_annual_data__employees_by_mode_and_employee_type + - name: fct_ntd_annual_data__fuel_and_energy + - name: fct_ntd_annual_data__fuel_and_energy_by_agency + - name: fct_ntd_annual_data__funding_sources_by_expense_type + - name: fct_ntd_annual_data__funding_sources_directly_generated + - name: fct_ntd_annual_data__funding_sources_federal + - name: fct_ntd_annual_data__funding_sources_local + - name: fct_ntd_annual_data__funding_sources_state + - name: fct_ntd_annual_data__funding_sources_taxes_levied_by_agency + - name: fct_ntd_annual_data__maintenance_facilities + - name: fct_ntd_annual_data__maintenance_facilities_by_agency + - name: fct_ntd_annual_data__metrics - name: fct_ntd_annual_data__operating_expenses_by_function - name: fct_ntd_annual_data__operating_expenses_by_function_and_agency - name: fct_ntd_annual_data__operating_expenses_by_type - name: fct_ntd_annual_data__operating_expenses_by_type_and_agency - - name: fct_ntd_annual_data__vehicles_age_distribution - - name: fct_ntd_annual_data__vehicles_type_count_by_agency - - name: fct_ntd_annual_data__service_by_mode_and_time_period - - name: fct_ntd_annual_data__service_by_mode - name: fct_ntd_annual_data__service_by_agency + - name: fct_ntd_annual_data__service_by_mode + - name: fct_ntd_annual_data__service_by_mode_and_time_period + - name: fct_ntd_annual_data__stations_and_facilities_by_agency_and_facility_type + - name: fct_ntd_annual_data__stations_by_mode_and_age + - name: fct_ntd_annual_data__track_and_roadway_by_agency - name: fct_ntd_annual_data__track_and_roadway_by_mode - name: fct_ntd_annual_data__track_and_roadway_guideway_age_distribution - - name: fct_ntd_annual_data__track_and_roadway_by_agency - - name: fct_ntd_annual_data__metrics - - name: fct_ntd_annual_data__funding_sources_by_expense_type - - name: fct_ntd_annual_data__funding_sources_directly_generated - - name: fct_ntd_annual_data__funding_sources_taxes_levied_by_agency - - name: fct_ntd_annual_data__funding_sources_local - - name: fct_ntd_annual_data__funding_sources_state - - name: fct_ntd_annual_data__funding_sources_federal - - name: fct_ntd_annual_data__maintenance_facilities - - name: fct_ntd_annual_data__maintenance_facilities_by_agency - - name: fct_ntd_annual_data__fuel_and_energy - - name: fct_ntd_annual_data__fuel_and_energy_by_agency - - name: fct_ntd_annual_data__employees_by_mode_and_employee_type - - name: fct_ntd_annual_data__employees_by_mode - - name: fct_ntd_annual_data__employees_by_agency - - name: fct_ntd_annual_data__capital_expenses_by_capital_use - - name: fct_ntd_annual_data__capital_expenses_by_mode - - name: fct_ntd_annual_data__capital_expenses_for_existing_service - - name: fct_ntd_annual_data__capital_expenses_for_expansion_of_service - - name: fct_ntd_annual_data__breakdowns - - name: fct_ntd_annual_data__breakdowns_by_agency + - name: fct_ntd_annual_data__vehicles_age_distribution + - name: fct_ntd_annual_data__vehicles_type_count_by_agency