diff --git a/macros/sql/get_table_types_sql.sql b/macros/sql/get_table_types_sql.sql index 8a88c45a..16bc6be2 100644 --- a/macros/sql/get_table_types_sql.sql +++ b/macros/sql/get_table_types_sql.sql @@ -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 %} @@ -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 %} @@ -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 %}