Problem Description
In the TIDES stop_visits table, several fields representing durations use the suffix _time instead of a more appropriate suffix like _duration or _seconds. This inconsistent naming creates confusion because other fields ending with _time in TIDES tables represent timestamps, not durations.
The specific fields in question are:
ramp_deployed_time
kneel_deployed_time
lift_deployed_time
Current Specification
The current TIDES specification includes these fields in the stop_visits table with the _time suffix, despite them representing durations rather than timestamps. This creates a naming inconsistency within the TIDES schema that could lead to implementation errors or misinterpretation of the data.
WMATA's Implementation Experience
In WMATA's implementation:
- These fields are currently set to NULL in the dbt models
- While not actively using these fields yet, the naming inconsistency was identified as a potential source of confusion as implementation progresses
- The inconsistency was flagged during schema review as a potential issue for future data users
Proposed Solution
We propose renaming these fields to use a more appropriate suffix that clearly indicates they represent durations:
| Current Field Name |
Proposed Field Name |
ramp_deployed_time |
ramp_deployed_duration |
kneel_deployed_time |
kneel_deployed_duration |
lift_deployed_time |
lift_deployed_duration |
Alternatively, the suffix _seconds could be used if the values specifically represent seconds:
| Current Field Name |
Alternative Proposed Name |
ramp_deployed_time |
ramp_deployed_seconds |
kneel_deployed_time |
kneel_deployed_seconds |
lift_deployed_time |
lift_deployed_seconds |
Impact
Renaming these fields would:
- Improve clarity and consistency in the TIDES schema
- Reduce the likelihood of implementation errors
- Make the purpose of these fields more immediately apparent to data users
- Align with best practices for naming duration fields
Backward Compatibility
This change would require updates to existing implementations, but since:
- The change is straightforward
- These fields may not be widely used yet (they are NULL in WMATA's implementation)
- The semantic meaning of the fields is not changing
The impact on existing implementations should be minimal.
Additional Considerations
While this issue was marked as lower priority in WMATA's implementation discussions, addressing it now would prevent potential confusion as more agencies implement TIDES and begin using these fields. The change is simple but would improve the overall quality and consistency of the TIDES specification.
Problem Description
In the TIDES
stop_visitstable, several fields representing durations use the suffix_timeinstead of a more appropriate suffix like_durationor_seconds. This inconsistent naming creates confusion because other fields ending with_timein TIDES tables represent timestamps, not durations.The specific fields in question are:
ramp_deployed_timekneel_deployed_timelift_deployed_timeCurrent Specification
The current TIDES specification includes these fields in the
stop_visitstable with the_timesuffix, despite them representing durations rather than timestamps. This creates a naming inconsistency within the TIDES schema that could lead to implementation errors or misinterpretation of the data.WMATA's Implementation Experience
In WMATA's implementation:
Proposed Solution
We propose renaming these fields to use a more appropriate suffix that clearly indicates they represent durations:
ramp_deployed_timeramp_deployed_durationkneel_deployed_timekneel_deployed_durationlift_deployed_timelift_deployed_durationAlternatively, the suffix
_secondscould be used if the values specifically represent seconds:ramp_deployed_timeramp_deployed_secondskneel_deployed_timekneel_deployed_secondslift_deployed_timelift_deployed_secondsImpact
Renaming these fields would:
Backward Compatibility
This change would require updates to existing implementations, but since:
The impact on existing implementations should be minimal.
Additional Considerations
While this issue was marked as lower priority in WMATA's implementation discussions, addressing it now would prevent potential confusion as more agencies implement TIDES and begin using these fields. The change is simple but would improve the overall quality and consistency of the TIDES specification.