Skip to content

Commit 2ae4d71

Browse files
dbt snowflake/handle catalog relation none (#1313)
1 parent 8fbe9fc commit 2ae4d71

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dbt-snowflake/src/dbt/include/snowflake/macros/get_custom_name.sql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
{%- set catalog_relation = adapter.build_catalog_relation(node) -%}
55
{%- elif 'config' in target -%}
66
{%- set catalog_relation = adapter.build_catalog_relation(target) -%}
7-
7+
{%- else -%}
8+
{%- set catalog_relation = none -%}
89
{%- endif -%}
910
{%- if catalog_relation is not none
1011
and catalog_relation|attr('catalog_linked_database')-%}

0 commit comments

Comments
 (0)