Skip to content
Open
Show file tree
Hide file tree
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
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 2 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,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 %}