first table reading from sync_core
This commit is contained in:
parent
727431b7b2
commit
8341125c78
5 changed files with 52 additions and 0 deletions
14
macros/generate_schema_name.sql
Normal file
14
macros/generate_schema_name.sql
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{% macro generate_schema_name(custom_schema_name, node) -%}
|
||||
|
||||
{%- set default_schema = target.schema -%}
|
||||
{%- if custom_schema_name is none -%}
|
||||
|
||||
{{ default_schema }}
|
||||
|
||||
{%- else -%}
|
||||
|
||||
{{ custom_schema_name | trim }}
|
||||
|
||||
{%- endif -%}
|
||||
|
||||
{%- endmacro %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue