CommencerCommencer gratuitement

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.

Cet exercice fait partie du cours

Intermediate dbt

Afficher le cours

Exercice interactif pratique

Passez de la théorie à la pratique avec l’un de nos exercices interactifs

Commencer l’exercice