Intermediate dbt
Mike Metzger
Data Engineer
sources
and seeds
feed initial data to dbtmodels
handle the transformation of data (usually from sources
/ seeds
) for downstream userstests
can validate sources
, seeds
, models
unique
, not_null
, relation
, accepted_values
)dbt build
performs all these tasks, usually in productiondbt build
:
dbt run
)dbt test
)dbt seed
)dbt snapshot
)dbt docs
operationsCommands can be run individually
dbt run
doesn't validate first (ie, no tests are run)dbt seed
may not be complete for certain queriesdbt build
will determine dependencies and run all tests prior to production changesdbt build
may be overkill if only testing or small incremental changes are madedbt build --select <object>
dbt build -d
dbt build --exclude <object>
Intermediate dbt