Files
school_compare/pipeline/transform/macros/generate_schema_name.sql
T

8 lines
225 B
SQL
Raw Normal View History

{% macro generate_schema_name(custom_schema_name, node) -%}
{%- if custom_schema_name is not none -%}
{{ custom_schema_name | trim }}
{%- else -%}
{{ target.schema }}
{%- endif -%}
{%- endmacro %}