Bug: fct_daily_trip_updates_vehicle_positions_completeness overcounts trips #3571
Labels
project-gtfs-rt
project-gtfs-schedule
For issues related to gtfs-schedule project
reports.calitp.org
Describe the bug
fct_daily_trip_updates_vehicle_positions_completeness has a
scheduled_trips
column, but in almost all cases it's much higher than the actual number of daily scheduled trips.To Reproduce
use this or a similar query, note the same
trip_instance_key
appearing multiple times on the same dateExpected behavior
Each trip is only counted once per day
Additional context
can likely fix by adding date to the join (since
cal-itp-data-infra.staging.int_gtfs_quality__organization_dataset_map
) is temporalLEFT JOIN map ON map.schedule_feed_key = st.feed_key AND map.date = st.service_date
The text was updated successfully, but these errors were encountered: