ComeçarComece de graça

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.

Este exercício faz parte do curso

Intermediate dbt

Ver curso

Exercício interativo prático

Transforme a teoria em ação com um de nossos exercícios interativos

Começar o exercício