Implementing a reusable test
After learning about reusable tests, you realize that you'd love to build an in-house set of common tests for you and your team to use as you see fit. You notice that your datasets have several scenarios where you want to verify the columns contain values greater than 0. You decide to start your library by writing a reusable test for this purpose.
Note: Your data has not been materialized yet and, remember, we need to return rows that fail the test condition.
Este exercício faz parte do curso
Intermediate dbt
Exercício interativo prático
Transforme a teoria em ação com um de nossos exercícios interativos
Começar o exercício