Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions macros/dbt_utils/schema_cleanup/drop_old_relations.sql
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
ELSE concat_ws('.', table_catalog, table_schema, table_name)
END as relation_name
from
[{{ target.database }}].information_schema.tables -- Escape DB name
[{{ target.database }}].INFORMATION_SCHEMA.TABLES -- Escape DB name
where
table_schema like '{{ target.schema }}%'
and table_name not in (
Expand Down Expand Up @@ -54,4 +54,4 @@
{% else %}
{% do log('No relations to clean.', info=True) %}
{% endif %}
{%- endmacro -%}
{%- endmacro -%}