Building dbt Models

Data Engineering with dbt · 3:53

Listen on 93

Lyrics

[Verse 1]
In your data warehouse, raw tables await
Transform them with models, don't hesitate
Create a new file with dot S-Q-L
dbt will help your data story tell
Select and join, filter what you need
Clean messy columns, plant the seed

[Chorus]
Build it, test it, run it through
Models are the magic that transforms for you
Table, view, or incremental way
Materialization saves the day
dbt models, organized and clean
The best data pipeline you've ever seen

[Verse 2]
In your models folder, structure is key
Staging, marts, and intermediate, you see
Start with staging, clean the source
One table each, stay on course
Then intermediate joins them tight
Preparing data, getting it right

[Chorus]
Build it, test it, run it through
Models are the magic that transforms for you
Table, view, or incremental way
Materialization saves the day
dbt models, organized and clean
The best data pipeline you've ever seen

[Bridge]
Reference models with the ref function call
Dependencies tracked, connecting them all
Config block sets how it's stored
Table for speed, view for low cost scored
Incremental adds just what's new
Efficient updates, resources few

[Verse 3]
Write your SQL, transformation logic clear
Select columns, calculations appear
Where clauses filter, group by aggregates
Window functions calculate rates
Test your models, ensure they're right
Data quality shining bright

[Chorus]
Build it, test it, run it through
Models are the magic that transforms for you
Table, view, or incremental way
Materialization saves the day
dbt models, organized and clean
The best data pipeline you've ever seen

[Outro]
From raw to refined, your data flows
With dbt models, your knowledge grows
Build the pipeline, step by step
Quality data, promises kept

← Introduction to dbt | dbt Testing and Quality →