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
7 changes: 4 additions & 3 deletions macros/sql/get_table_types_sql.sql
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
case table_type
when 'BASE TABLE' then 'table'
when 'EXTERNAL TABLE' then 'external'
when 'MATERIALIZED VIEW' then 'materializedview'
when 'MATERIALIZED VIEW' then 'materialized_view'
else lower(table_type)
end as {{ adapter.quote('table_type') }}
{% endmacro %}
Expand All @@ -16,7 +16,7 @@
case table_type
when 'BASE TABLE' then 'table'
when 'FOREIGN' then 'external'
when 'MATERIALIZED VIEW' then 'materializedview'
when 'MATERIALIZED VIEW' then 'materialized_view'
else lower(table_type)
end as {{ adapter.quote('table_type') }}
{% endmacro %}
Expand All @@ -26,7 +26,8 @@
case table_type
when 'MANAGED' then 'table'
when 'BASE TABLE' then 'table'
when 'MATERIALIZED VIEW' then 'materializedview'
when 'MATERIALIZED_VIEW' then 'materialized_view'
when 'STREAMING_TABLE' then 'streaming_table'
else lower(table_type)
end as {{ adapter.quote('table_type') }}
{% endmacro %}
Loading