running on pointer database
This commit is contained in:
parent
c59600d9f2
commit
f2e447ba60
2 changed files with 17 additions and 22 deletions
|
|
@ -8,11 +8,17 @@ To understand better, check:
|
|||
*/
|
||||
{% macro generate_schema_name(custom_schema_name, node) -%}
|
||||
|
||||
{%- set default_schema = target.schema -%}
|
||||
{%- if custom_schema_name is none -%} {{ default_schema }}
|
||||
{% macro generate_schema_name(custom_schema_name, node) -%}
|
||||
|
||||
{%- else -%} {{ custom_schema_name | trim }}
|
||||
{%- set default_schema = target.schema -%}
|
||||
{%- set is_ci_execution = env_var("IS_CI_EXECUTION", "0") | int -%}
|
||||
{%- set ci_schema_name = env_var("CI_SCHEMA_NAME", "ci_default") -%}
|
||||
|
||||
{%- endif -%}
|
||||
{%- if is_ci_execution == 1 -%} {{ ci_schema_name }}
|
||||
{%- elif custom_schema_name is none -%} {{ default_schema }}
|
||||
{%- else -%} {{ custom_schema_name | trim }}
|
||||
{%- endif -%}
|
||||
|
||||
{%- endmacro %}
|
||||
|
||||
{%- endmacro %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue