-
Notifications
You must be signed in to change notification settings - Fork 15
Create vehicle position derived stop grain metrics #4127
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
Draft
tiffanychu90
wants to merge
21
commits into
main
Choose a base branch
from
expand-intermediate-stop-times
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Terraform plan in iac/cal-itp-data-infra-staging/airflow/us Plan: 4 to add, 5 to change, 0 to destroy.Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
+ create
!~ update in-place
Terraform will perform the following actions:
# google_storage_bucket_object.calitp-staging-composer-catalog will be updated in-place
!~ resource "google_storage_bucket_object" "calitp-staging-composer-catalog" {
!~ content = (sensitive value)
!~ crc32c = "ywRuIQ==" -> (known after apply)
!~ detect_md5hash = "5cIZgRn7xQWZrtF6cTUFIQ==" -> "different hash"
!~ generation = 1755275090821996 -> (known after apply)
id = "calitp-staging-composer-data/warehouse/target/catalog.json"
!~ md5hash = "5cIZgRn7xQWZrtF6cTUFIQ==" -> (known after apply)
name = "data/warehouse/target/catalog.json"
# (16 unchanged attributes hidden)
}
# google_storage_bucket_object.calitp-staging-composer-dags["models/intermediate/gtfs/_int_gtfs.yaml"] will be updated in-place
!~ resource "google_storage_bucket_object" "calitp-staging-composer-dags" {
!~ crc32c = "1EOB9A==" -> (known after apply)
!~ detect_md5hash = "qSASDPn6cn8Jdtmaoaz0FQ==" -> "different hash"
!~ generation = 1754523275842512 -> (known after apply)
id = "calitp-staging-composer-data/warehouse/models/intermediate/gtfs/_int_gtfs.yaml"
!~ md5hash = "qSASDPn6cn8Jdtmaoaz0FQ==" -> (known after apply)
name = "data/warehouse/models/intermediate/gtfs/_int_gtfs.yaml"
# (17 unchanged attributes hidden)
}
# google_storage_bucket_object.calitp-staging-composer-dags["models/intermediate/gtfs/int_gtfs_rt_vs_sched__stops_served_vehicle_positions.sql"] will be created
+ resource "google_storage_bucket_object" "calitp-staging-composer-dags" {
+ bucket = "calitp-staging-composer"
+ content = (sensitive value)
+ content_type = (known after apply)
+ crc32c = (known after apply)
+ detect_md5hash = "different hash"
+ generation = (known after apply)
+ id = (known after apply)
+ kms_key_name = (known after apply)
+ md5hash = (known after apply)
+ md5hexhash = (known after apply)
+ media_link = (known after apply)
+ name = "data/warehouse/models/intermediate/gtfs/int_gtfs_rt_vs_sched__stops_served_vehicle_positions.sql"
+ output_name = (known after apply)
+ self_link = (known after apply)
+ source = "../../../../warehouse/models/intermediate/gtfs/int_gtfs_rt_vs_sched__stops_served_vehicle_positions.sql"
+ storage_class = (known after apply)
}
# google_storage_bucket_object.calitp-staging-composer-dags["models/intermediate/gtfs/int_gtfs_schedule__stop_times_grouped.sql"] will be updated in-place
!~ resource "google_storage_bucket_object" "calitp-staging-composer-dags" {
!~ crc32c = "gElm9g==" -> (known after apply)
!~ detect_md5hash = "yDLEGvytnnWa5vUOCwQvEw==" -> "different hash"
!~ generation = 1749663116270396 -> (known after apply)
id = "calitp-staging-composer-data/warehouse/models/intermediate/gtfs/int_gtfs_schedule__stop_times_grouped.sql"
!~ md5hash = "yDLEGvytnnWa5vUOCwQvEw==" -> (known after apply)
name = "data/warehouse/models/intermediate/gtfs/int_gtfs_schedule__stop_times_grouped.sql"
# (17 unchanged attributes hidden)
}
# google_storage_bucket_object.calitp-staging-composer-dags["models/mart/gtfs/fct_vehicle_locations_path.sql"] will be updated in-place
!~ resource "google_storage_bucket_object" "calitp-staging-composer-dags" {
!~ crc32c = "d+JBfA==" -> (known after apply)
!~ detect_md5hash = "dvuSMtXVHhvZNA9RlS/FIw==" -> "different hash"
!~ generation = 1752161965968081 -> (known after apply)
id = "calitp-staging-composer-data/warehouse/models/mart/gtfs/fct_vehicle_locations_path.sql"
!~ md5hash = "dvuSMtXVHhvZNA9RlS/FIw==" -> (known after apply)
name = "data/warehouse/models/mart/gtfs/fct_vehicle_locations_path.sql"
# (17 unchanged attributes hidden)
}
# google_storage_bucket_object.calitp-staging-composer-dags["models/mart/gtfs/fct_vehicle_positions_stop_metrics.sql"] will be created
+ resource "google_storage_bucket_object" "calitp-staging-composer-dags" {
+ bucket = "calitp-staging-composer"
+ content = (sensitive value)
+ content_type = (known after apply)
+ crc32c = (known after apply)
+ detect_md5hash = "different hash"
+ generation = (known after apply)
+ id = (known after apply)
+ kms_key_name = (known after apply)
+ md5hash = (known after apply)
+ md5hexhash = (known after apply)
+ media_link = (known after apply)
+ name = "data/warehouse/models/mart/gtfs/fct_vehicle_positions_stop_metrics.sql"
+ output_name = (known after apply)
+ self_link = (known after apply)
+ source = "../../../../warehouse/models/mart/gtfs/fct_vehicle_positions_stop_metrics.sql"
+ storage_class = (known after apply)
}
# google_storage_bucket_object.calitp-staging-composer-dags["models/mart/gtfs/test_vehicle_locations.sql"] will be created
+ resource "google_storage_bucket_object" "calitp-staging-composer-dags" {
+ bucket = "calitp-staging-composer"
+ content = (sensitive value)
+ content_type = (known after apply)
+ crc32c = (known after apply)
+ detect_md5hash = "different hash"
+ generation = (known after apply)
+ id = (known after apply)
+ kms_key_name = (known after apply)
+ md5hash = (known after apply)
+ md5hexhash = (known after apply)
+ media_link = (known after apply)
+ name = "data/warehouse/models/mart/gtfs/test_vehicle_locations.sql"
+ output_name = (known after apply)
+ self_link = (known after apply)
+ source = "../../../../warehouse/models/mart/gtfs/test_vehicle_locations.sql"
+ storage_class = (known after apply)
}
# google_storage_bucket_object.calitp-staging-composer-dags["models/mart/gtfs/test_vehicle_locations_path.sql"] will be created
+ resource "google_storage_bucket_object" "calitp-staging-composer-dags" {
+ bucket = "calitp-staging-composer"
+ content = (sensitive value)
+ content_type = (known after apply)
+ crc32c = (known after apply)
+ detect_md5hash = "different hash"
+ generation = (known after apply)
+ id = (known after apply)
+ kms_key_name = (known after apply)
+ md5hash = (known after apply)
+ md5hexhash = (known after apply)
+ media_link = (known after apply)
+ name = "data/warehouse/models/mart/gtfs/test_vehicle_locations_path.sql"
+ output_name = (known after apply)
+ self_link = (known after apply)
+ source = "../../../../warehouse/models/mart/gtfs/test_vehicle_locations_path.sql"
+ storage_class = (known after apply)
}
# google_storage_bucket_object.calitp-staging-composer-manifest will be updated in-place
!~ resource "google_storage_bucket_object" "calitp-staging-composer-manifest" {
!~ content = (sensitive value)
!~ crc32c = "F/xmNg==" -> (known after apply)
!~ detect_md5hash = "ZSqx6z78ExlzwiEB+Rzk1w==" -> "different hash"
!~ generation = 1755275092539714 -> (known after apply)
id = "calitp-staging-composer-data/warehouse/target/manifest.json"
!~ md5hash = "ZSqx6z78ExlzwiEB+Rzk1w==" -> (known after apply)
name = "data/warehouse/target/manifest.json"
# (16 unchanged attributes hidden)
}
Plan: 4 to add, 5 to change, 0 to destroy. 📝 Plan generated in Plan Airflow DAGs #492 |
Terraform plan in iac/cal-itp-data-infra/airflow/us Plan: 4 to add, 5 to change, 0 to destroy.Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
+ create
!~ update in-place
Terraform will perform the following actions:
# google_storage_bucket_object.calitp-composer-catalog will be updated in-place
!~ resource "google_storage_bucket_object" "calitp-composer-catalog" {
!~ content = (sensitive value)
!~ crc32c = "prS3hQ==" -> (known after apply)
!~ detect_md5hash = "Q+BPTUMl+rLSPAiZUOU8ug==" -> "different hash"
!~ generation = 1755538684362691 -> (known after apply)
id = "calitp-composer-data/warehouse/target/catalog.json"
!~ md5hash = "Q+BPTUMl+rLSPAiZUOU8ug==" -> (known after apply)
name = "data/warehouse/target/catalog.json"
# (16 unchanged attributes hidden)
}
# google_storage_bucket_object.calitp-composer-dags["models/intermediate/gtfs/_int_gtfs.yaml"] will be updated in-place
!~ resource "google_storage_bucket_object" "calitp-composer-dags" {
!~ crc32c = "1EOB9A==" -> (known after apply)
!~ detect_md5hash = "qSASDPn6cn8Jdtmaoaz0FQ==" -> "different hash"
!~ generation = 1754523290759543 -> (known after apply)
id = "calitp-composer-data/warehouse/models/intermediate/gtfs/_int_gtfs.yaml"
!~ md5hash = "qSASDPn6cn8Jdtmaoaz0FQ==" -> (known after apply)
name = "data/warehouse/models/intermediate/gtfs/_int_gtfs.yaml"
# (17 unchanged attributes hidden)
}
# google_storage_bucket_object.calitp-composer-dags["models/intermediate/gtfs/int_gtfs_rt_vs_sched__stops_served_vehicle_positions.sql"] will be created
+ resource "google_storage_bucket_object" "calitp-composer-dags" {
+ bucket = "calitp-composer"
+ content = (sensitive value)
+ content_type = (known after apply)
+ crc32c = (known after apply)
+ detect_md5hash = "different hash"
+ generation = (known after apply)
+ id = (known after apply)
+ kms_key_name = (known after apply)
+ md5hash = (known after apply)
+ md5hexhash = (known after apply)
+ media_link = (known after apply)
+ name = "data/warehouse/models/intermediate/gtfs/int_gtfs_rt_vs_sched__stops_served_vehicle_positions.sql"
+ output_name = (known after apply)
+ self_link = (known after apply)
+ source = "../../../../warehouse/models/intermediate/gtfs/int_gtfs_rt_vs_sched__stops_served_vehicle_positions.sql"
+ storage_class = (known after apply)
}
# google_storage_bucket_object.calitp-composer-dags["models/intermediate/gtfs/int_gtfs_schedule__stop_times_grouped.sql"] will be updated in-place
!~ resource "google_storage_bucket_object" "calitp-composer-dags" {
!~ crc32c = "gElm9g==" -> (known after apply)
!~ detect_md5hash = "yDLEGvytnnWa5vUOCwQvEw==" -> "different hash"
!~ generation = 1751416661143892 -> (known after apply)
id = "calitp-composer-data/warehouse/models/intermediate/gtfs/int_gtfs_schedule__stop_times_grouped.sql"
!~ md5hash = "yDLEGvytnnWa5vUOCwQvEw==" -> (known after apply)
name = "data/warehouse/models/intermediate/gtfs/int_gtfs_schedule__stop_times_grouped.sql"
# (17 unchanged attributes hidden)
}
# google_storage_bucket_object.calitp-composer-dags["models/mart/gtfs/fct_vehicle_locations_path.sql"] will be updated in-place
!~ resource "google_storage_bucket_object" "calitp-composer-dags" {
!~ crc32c = "d+JBfA==" -> (known after apply)
!~ detect_md5hash = "dvuSMtXVHhvZNA9RlS/FIw==" -> "different hash"
!~ generation = 1752161967800132 -> (known after apply)
id = "calitp-composer-data/warehouse/models/mart/gtfs/fct_vehicle_locations_path.sql"
!~ md5hash = "dvuSMtXVHhvZNA9RlS/FIw==" -> (known after apply)
name = "data/warehouse/models/mart/gtfs/fct_vehicle_locations_path.sql"
# (17 unchanged attributes hidden)
}
# google_storage_bucket_object.calitp-composer-dags["models/mart/gtfs/fct_vehicle_positions_stop_metrics.sql"] will be created
+ resource "google_storage_bucket_object" "calitp-composer-dags" {
+ bucket = "calitp-composer"
+ content = (sensitive value)
+ content_type = (known after apply)
+ crc32c = (known after apply)
+ detect_md5hash = "different hash"
+ generation = (known after apply)
+ id = (known after apply)
+ kms_key_name = (known after apply)
+ md5hash = (known after apply)
+ md5hexhash = (known after apply)
+ media_link = (known after apply)
+ name = "data/warehouse/models/mart/gtfs/fct_vehicle_positions_stop_metrics.sql"
+ output_name = (known after apply)
+ self_link = (known after apply)
+ source = "../../../../warehouse/models/mart/gtfs/fct_vehicle_positions_stop_metrics.sql"
+ storage_class = (known after apply)
}
# google_storage_bucket_object.calitp-composer-dags["models/mart/gtfs/test_vehicle_locations.sql"] will be created
+ resource "google_storage_bucket_object" "calitp-composer-dags" {
+ bucket = "calitp-composer"
+ content = (sensitive value)
+ content_type = (known after apply)
+ crc32c = (known after apply)
+ detect_md5hash = "different hash"
+ generation = (known after apply)
+ id = (known after apply)
+ kms_key_name = (known after apply)
+ md5hash = (known after apply)
+ md5hexhash = (known after apply)
+ media_link = (known after apply)
+ name = "data/warehouse/models/mart/gtfs/test_vehicle_locations.sql"
+ output_name = (known after apply)
+ self_link = (known after apply)
+ source = "../../../../warehouse/models/mart/gtfs/test_vehicle_locations.sql"
+ storage_class = (known after apply)
}
# google_storage_bucket_object.calitp-composer-dags["models/mart/gtfs/test_vehicle_locations_path.sql"] will be created
+ resource "google_storage_bucket_object" "calitp-composer-dags" {
+ bucket = "calitp-composer"
+ content = (sensitive value)
+ content_type = (known after apply)
+ crc32c = (known after apply)
+ detect_md5hash = "different hash"
+ generation = (known after apply)
+ id = (known after apply)
+ kms_key_name = (known after apply)
+ md5hash = (known after apply)
+ md5hexhash = (known after apply)
+ media_link = (known after apply)
+ name = "data/warehouse/models/mart/gtfs/test_vehicle_locations_path.sql"
+ output_name = (known after apply)
+ self_link = (known after apply)
+ source = "../../../../warehouse/models/mart/gtfs/test_vehicle_locations_path.sql"
+ storage_class = (known after apply)
}
# google_storage_bucket_object.calitp-composer-manifest will be updated in-place
!~ resource "google_storage_bucket_object" "calitp-composer-manifest" {
!~ content = (sensitive value)
!~ crc32c = "M2fl7Q==" -> (known after apply)
!~ detect_md5hash = "t2qjY23MCKTGKyOj0YMyoQ==" -> "different hash"
!~ generation = 1755538685950783 -> (known after apply)
id = "calitp-composer-data/warehouse/target/manifest.json"
!~ md5hash = "t2qjY23MCKTGKyOj0YMyoQ==" -> (known after apply)
name = "data/warehouse/target/manifest.json"
# (16 unchanged attributes hidden)
}
Plan: 4 to add, 5 to change, 0 to destroy. 📝 Plan generated in Plan Airflow DAGs #492 |
75c5c38
to
98fb5d6
Compare
98fb5d6
to
5181804
Compare
5181804
to
03a83d9
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Create an intermediate table that compares scheduled stop positions with the vehicle locations path (linestring):
int_gtfs_rt_vs_sched__stops_served_vehicle_positions
int_gtfs_schedule__stop_times_grouped
(trip grain) to capture additional columns fromdim_stops
(stop_id, pt_geom
) to usemart_gtfs.fct_vehicle_positions_stop_metrics
, which will summarize the GTFS RT vp-derived stop grain metricsResolves #4034 and works on the vehicle position derived portion of stop grain metrics for #4101
Type of change
How has this been tested?
Post-merge follow-ups