Skip to content

Commit

Permalink
fix snowflake check_schema_exists macro
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob Beck committed Jan 24, 2019
1 parent 9ff8705 commit 7d332aa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
{% macro snowflake__check_schema_exists(database, schema) -%}
{% call statement('check_schema_exists', fetch_result=True) -%}
select count(*)
from {{ information_schema_name(database) }}
from {{ information_schema_name(database) }}.schemata
where upper(schema_name) = upper('{{ schema }}')
and upper(catalog_name) = upper('{{ database }}')
{%- endcall %}
Expand Down

0 comments on commit 7d332aa

Please sign in to comment.