In this video, we will go through - setting up your dbt project - running and testing the sample models - see what it will look like to correct a broken test.
Summary of this video:
Develop
to go to the IDE.initialize your project
.dbt run
on the command line.dbt test
.To fix the failing model my_first_dbt_model
, click on the model file and update the select statement from
with source_data as (
select 1 as id
union all
select null as id
)
select * from source_data
to
with source_data as (
select 1 as id
union all
select 2 as id
)
select * from source_data
dbt run -m my_first_dbt_model
dbt test -m my_first_dbt_model
setup dbt project
, and click on Commit
. This is the first and last time we will be committing directly to the master branch.