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.
Diese Übung ist Teil des Kurses
Intermediate dbt
Interaktive Übung
In dieser interaktiven Übung kannst du die Theorie in die Praxis umsetzen.
Übung starten