IniziaInizia gratis

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.

Questo esercizio fa parte del corso

Intermediate dbt

Visualizza il corso

Esercizio pratico interattivo

Passa dalla teoria alla pratica con uno dei nostri esercizi interattivi

Inizia esercizio