- Bootstrap the source / snapshot table
source_users
and the initial state of our scd2 tabledim_users
by running:
dbt run -m source_users dim_users
- Copy over contents of
dim_users_inc.sql
replacing contents indim_users.sql
(or just rename them). Then run:
dbt run -m dim_users
@jeremyyeo one think I also like to add in this setup is a config on the incremental model to avoid the full_refresh, as with snapshots we are looking to store history and we want to avoid dropping those tables by mistake.