fix: dbt schema

This commit is contained in:
Stijnvandenbroek
2026-03-04 21:15:58 +00:00
parent 65134183ca
commit 532bb5138a
3 changed files with 11 additions and 1 deletions

View File

@@ -18,7 +18,10 @@ models:
data_platform: data_platform:
staging: staging:
+materialized: view +materialized: view
+schema: staging
intermediate: intermediate:
+materialized: view +materialized: view
+schema: intermediate
marts: marts:
+materialized: table +materialized: table
+schema: marts

View File

@@ -0,0 +1,7 @@
{% macro generate_schema_name(custom_schema_name, node) -%}
{%- if custom_schema_name is none -%}
{{ default_schema }}
{%- else -%}
{{ custom_schema_name | trim }}
{%- endif -%}
{%- endmacro %}

View File

@@ -8,5 +8,5 @@ data_platform:
user: "{{ env_var('POSTGRES_USER') }}" user: "{{ env_var('POSTGRES_USER') }}"
password: "{{ env_var('POSTGRES_PASSWORD') }}" password: "{{ env_var('POSTGRES_PASSWORD') }}"
dbname: "{{ env_var('POSTGRES_DB') }}" dbname: "{{ env_var('POSTGRES_DB') }}"
schema: staging schema: public
threads: 4 threads: 4