diff --git a/CHANGELOG.md b/CHANGELOG.md index 3586c3e4..b0a20d8a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Unreleased +## What's Changed + +### fixes +- databricks__get_table_types_sql() will now handle streaming_tables ([#861](https://github.com/dbt-labs/dbt-utils/issues/861)) +- databricks__get_table_types_sql() will now correctly handle materialized views ([#881](https://github.com/dbt-labs/dbt-utils/issues/881)) + **Full Changelog**: https://github.com/dbt-labs/dbt-utils/compare/1.3.0...main # dbt utils v1.3.0 diff --git a/macros/sql/get_table_types_sql.sql b/macros/sql/get_table_types_sql.sql index 8a88c45a..945398c5 100644 --- a/macros/sql/get_table_types_sql.sql +++ b/macros/sql/get_table_types_sql.sql @@ -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 'materializedview' + when 'STREAMING_TABLE' then 'streamingtable' else lower(table_type) end as {{ adapter.quote('table_type') }} {% endmacro %}