Skip to content

Commit

Permalink
explicitly state that materialized views have a relkind of v
Browse files Browse the repository at this point in the history
  • Loading branch information
mikealfare committed Oct 31, 2023
1 parent e907eb1 commit bd3bfe1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dbt/include/redshift/macros/catalog.sql
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
sch.nspname as table_schema,
tbl.relname as table_name,
case
when materialized_views.relname is not null then 'MATERIALIZED VIEW'
when tbl.relkind = 'v' and materialized_views.relname is not null then 'MATERIALIZED VIEW'
when tbl.relkind = 'v' then 'VIEW'
else 'BASE TABLE'
end as table_type,
Expand Down

0 comments on commit bd3bfe1

Please sign in to comment.