Skip to content

Commit

Permalink
Docs - audit mart_gtfs_schedule_latest (#3340)
Browse files Browse the repository at this point in the history
* audit gtfs_schedule_latest columns and fill in descriptions

* undo sqlfluff changes

* comment out sqlfluff files temporarily

* Update .pre-commit-config.yaml

Match main

---------

Co-authored-by: V <[email protected]>
  • Loading branch information
tiffanychu90 and vevetron authored May 16, 2024
1 parent 7c546ca commit e30c9dd
Showing 1 changed file with 29 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,10 @@ models:
ckan.authority: https://gtfs.org/schedule/reference/#areastxt
columns:
- *schedule_dim_pk
- *schedule_dim_gtfs_key
- *feed_key
- *base64_url
- *schedule_dim_dt
- name: area_id
description: '{{ doc("gtfs_areas__area_id") }}'
meta:
Expand All @@ -92,6 +94,7 @@ models:
meta:
publish.include: true
- *_feed_valid_from
- *schedule_dim_line_number
- *feed_timezone

- name: dim_attributions_latest
Expand Down Expand Up @@ -312,6 +315,7 @@ models:
ckan.authority: https://gtfs.org/schedule/reference/#fare_leg_rulestxt
columns:
- *schedule_dim_pk
- *schedule_dim_gtfs_key
- *feed_key
- *base64_url
- name: leg_group_id
Expand All @@ -334,7 +338,9 @@ models:
description: '{{ doc("gtfs_fare_leg_rules__fare_product_id") }}'
meta:
publish.include: true
- *schedule_dim_dt
- *_feed_valid_from
- *schedule_dim_line_number
- *feed_timezone

- name: dim_fare_media_latest
Expand All @@ -348,6 +354,7 @@ models:
ckan.authority: https://gtfs.org/schedule/reference/#fare_mediatxt
columns:
- *schedule_dim_pk
- *schedule_dim_gtfs_key
- *feed_key
- *base64_url
- name: fare_media_id
Expand All @@ -362,7 +369,9 @@ models:
description: '{{ doc("gtfs_fare_media__fare_media_type") }}'
meta:
publish.include: true
- *schedule_dim_dt
- *_feed_valid_from
- *schedule_dim_line_number
- *feed_timezone

- name: dim_fare_products_latest
Expand All @@ -376,6 +385,7 @@ models:
ckan.authority: https://gtfs.org/schedule/reference/#fare_productstxt
columns:
- *schedule_dim_pk
- *schedule_dim_gtfs_key
- *feed_key
- *base64_url
- name: fare_product_id
Expand All @@ -398,7 +408,9 @@ models:
description: '{{ doc("gtfs_fare_products__currency") }}'
meta:
publish.include: true
- *schedule_dim_dt
- *_feed_valid_from
- *schedule_dim_line_number
- *feed_timezone

- name: dim_fare_rules_latest
Expand Down Expand Up @@ -452,6 +464,7 @@ models:
ckan.authority: https://gtfs.org/schedule/reference/#fare_transfer_rulestxt
columns:
- *schedule_dim_pk
- *schedule_dim_gtfs_key
- *feed_key
- *base64_url
- name: from_leg_group_id
Expand Down Expand Up @@ -482,7 +495,10 @@ models:
description: '{{ doc("gtfs_fare_transfer_rules__fare_product_id") }}'
meta:
publish.include: true
- *warning_duplicate_gtfs_key
- *schedule_dim_dt
- *_feed_valid_from
- *schedule_dim_line_number
- *feed_timezone

- name: dim_feed_info_latest
Expand Down Expand Up @@ -815,6 +831,7 @@ models:
ckan.authority: https://gtfs.org/schedule/reference/#stop_areastxt
columns:
- *schedule_dim_pk
- *schedule_dim_gtfs_key
- *feed_key
- *base64_url
- name: area_id
Expand All @@ -825,7 +842,9 @@ models:
description: '{{ doc("gtfs_stop_areas__stop_id") }}'
meta:
publish.include: true
- *schedule_dim_dt
- *_feed_valid_from
- *schedule_dim_line_number
- *feed_timezone

- name: dim_stop_times_latest
Expand Down Expand Up @@ -1043,6 +1062,8 @@ models:
ckan.length: 7
ckan.precision: 3
publish.include: true
- name: pt_geom
description: GEOGPOINT created by the stop latitute and longitude
- name: zone_id
description: '{{ doc("gtfs_stops__zone_id") }}'
meta:
Expand Down Expand Up @@ -1079,6 +1100,12 @@ models:
- *feed_timezone
- name: stop_timezone_coalesced
- *warning_duplicate_gtfs_key
- name: warning_missing_primary_key
description: |
Rows with `true` in this column are missing a `stop_id`, the primary
key for this table (i.e., `stop_id` was not provided in the raw data).
These rows will fail to join with other tables from their feed because
they cannot be referenced by a foreign key elsewhere.
- name: dim_transfers_latest
description: |
Expand Down Expand Up @@ -1274,7 +1301,7 @@ exposures:
- ref("dim_trips_latest")

owner:
email: [email protected]
email: [email protected]

meta:
methodology: |
Expand Down Expand Up @@ -1440,7 +1467,7 @@ exposures:
depends_on:
- ref("dim_shapes_arrays_latest")
owner:
email: [email protected]
email: [email protected]
meta:
destinations:
- type: tiles
Expand Down

0 comments on commit e30c9dd

Please sign in to comment.