Verifying trip duration
Your teammate flags an issue in the source data: some rows have a trip duration of 0. While filtering is possible, downstream models store these. He asks you to create a test that fails if any trip has a duration of 0
.
Reviewing the taxi_rides_raw
schema, you find no direct trip duration field. You determine the issue arises when trip start and end times are identical. You decide to write a quick query to check for this.
You can refer to the schema document for information about the fields in the taxi_rides_raw table.
Note that the dbt project has already been executed for you and should not be required.
This exercise is part of the course
Intermediate dbt
Hands-on interactive exercise
Turn theory into action with one of our interactive exercises
