Skip to content

Commit

Permalink
add schema filter
Browse files Browse the repository at this point in the history
  • Loading branch information
jiezhen-chen committed Jul 12, 2023
1 parent 7b2f375 commit 0ea7496
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dbt/include/redshift/macros/adapters.sql
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@
table_schema as schema,
'table' as type
from information_schema.tables
where table_schema = '{{ schema_relation.schema }}'
where table_schema ilike '{{ schema_relation.schema }}'
and table_type = 'BASE TABLE'
union all
select
Expand All @@ -245,7 +245,7 @@
else 'view'
end as type
from information_schema.views
where table_schema = '{{ schema_relation.schema }}'
where table_schema ilike '{{ schema_relation.schema }}'
{% endcall %}
{{ return(load_result('list_relations_without_caching').table) }}
{% endmacro %}
Expand Down

0 comments on commit 0ea7496

Please sign in to comment.