Skip to content
Open
Changes from 2 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
13 changes: 12 additions & 1 deletion macros/sql/get_table_types_sql.sql
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,18 @@
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 %}


{% macro bigquery__get_table_types_sql() %}
case table_type
when 'BASE TABLE' then 'table'
when 'EXTERNAL TABLE' then 'external'
when 'MATERIALIZED VIEW' then 'materialized_view'
else lower(table_type)
end as {{ adapter.quote('table_type') }}
{% endmacro %}
Loading