fix(dbt): override generate_schema_name to use direct schema names
All checks were successful
Build and Push Docker Images / Build Backend (FastAPI) (push) Successful in 34s
Build and Push Docker Images / Build Frontend (Next.js) (push) Successful in 1m7s
Build and Push Docker Images / Build Integrator (push) Successful in 55s
Build and Push Docker Images / Build Kestra Init (push) Successful in 31s
Build and Push Docker Images / Build Pipeline (Meltano + dbt + Airflow) (push) Successful in 1m28s
Build and Push Docker Images / Trigger Portainer Update (push) Successful in 1s
All checks were successful
Build and Push Docker Images / Build Backend (FastAPI) (push) Successful in 34s
Build and Push Docker Images / Build Frontend (Next.js) (push) Successful in 1m7s
Build and Push Docker Images / Build Integrator (push) Successful in 55s
Build and Push Docker Images / Build Kestra Init (push) Successful in 31s
Build and Push Docker Images / Build Pipeline (Meltano + dbt + Airflow) (push) Successful in 1m28s
Build and Push Docker Images / Trigger Portainer Update (push) Successful in 1s
dbt default prepends the profile schema as prefix (public_staging, public_marts). Override to use custom schema names directly (staging, marts) so scripts can reference marts.dim_location correctly. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
7
pipeline/transform/macros/generate_schema_name.sql
Normal file
7
pipeline/transform/macros/generate_schema_name.sql
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{% macro generate_schema_name(custom_schema_name, node) -%}
|
||||||
|
{%- if custom_schema_name is not none -%}
|
||||||
|
{{ custom_schema_name | trim }}
|
||||||
|
{%- else -%}
|
||||||
|
{{ target.schema }}
|
||||||
|
{%- endif -%}
|
||||||
|
{%- endmacro %}
|
||||||
Reference in New Issue
Block a user