Skip to content

Instantly share code, notes, and snippets.

select code_part
from util_model_builder
where source = 'tienda'
and table_name = 'orders_order'
order by nr
## WARNING:
## The source table seems to have dependencies that has not been loaded.
## If you want to load these tables into their own staging models, you should do so first:
## - users_userchannel -> select code_part from util_model_builder where source = 'tienda' and table_name = 'users_userchannel' order by nr
## Step 1: (Optional) Update local environment
## If it has been a while since working in you local environment it is recommended that you do a full-refresh (~ 10 min)
## git checkout master
## git pull
## dbt run --full-refresh
@bjorskar
bjorskar / dbt_model_example.sql
Last active July 21, 2020 12:55
Dbt model example
{{
config(
materialized = 'table',
tags=['table', 'hourly'],
)
}}
select
id,
delivery_date,