Skip to content

Commit

Permalink
Rename NTD mart table dim_annual_ntd_agency_information to dim_annual…
Browse files Browse the repository at this point in the history
…_agency_information

[#3497]
  • Loading branch information
erikamov committed Nov 26, 2024
1 parent 2a836bf commit 4a2ef45
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/warehouse/warehouse_starter_kit.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ For a given day:

### Other

- [dim_annual_ntd_agency_information](https://dbt-docs.calitp.org/#!/model/model.calitp_warehouse.dim_annual_database_agency_information)
- [dim_annual_agency_information](https://dbt-docs.calitp.org/#!/model/model.calitp_warehouse.dim_annual_database_agency_information)

- View some of the data produced by the [US Department of Transportation](https://www.transit.dot.gov/ntd) for the National Transit Database.
- Information from 2018-2021 are available.
Expand Down
2 changes: 1 addition & 1 deletion warehouse/models/docs/_docs_transit_database.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ are implemented for future schema consistency, but historical data has not yet b

{% docs ntd_agency_info_table %}

DEPRECATED: Please use mart_ntd.dim_annual_ntd_agency_information going forward.
DEPRECATED: Please use mart_ntd.dim_annual_agency_information going forward.

2018 NTD Agency Info Table
Imported 10/6/2021 from fta.gov
Expand Down
2 changes: 1 addition & 1 deletion warehouse/models/mart/ntd/_mart_ntd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ x-common-fields:
description: '{{ doc("ntd_xlsx_execution_ts") }}'

models:
- name: dim_annual_ntd_agency_information
- name: dim_annual_agency_information
description: >
Contains basic contact and agency information for each NTD reporter.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ WITH stg_ntd__annual_database_agency_information AS (
FROM {{ ref('stg_ntd__annual_database_agency_information') }}
),

dim_annual_ntd_agency_information AS (
dim_annual_agency_information AS (
SELECT
{{ dbt_utils.generate_surrogate_key(['year', 'ntd_id', 'state_parent_ntd_id', 'ts']) }} AS key,
year,
Expand Down Expand Up @@ -59,4 +59,4 @@ dim_annual_ntd_agency_information AS (
FROM stg_ntd__annual_database_agency_information
)

SELECT * FROM dim_annual_ntd_agency_information
SELECT * FROM dim_annual_agency_information
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ funding_by_org AS (
-- We cannot use `_is_current` here because every year is marked as "current"
-- since it's the "current" record for the respective year.
annual_ntd AS (
SELECT * FROM {{ ref('dim_annual_ntd_agency_information') }}
SELECT * FROM {{ ref('dim_annual_agency_information') }}
WHERE state = "CA"

-- We only want data from the latest data from NTD. In the rare edge case
Expand Down

0 comments on commit 4a2ef45

Please sign in to comment.