Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

include streaming_table and fix materialized_view in databricks__get_table_types_sql() #862

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
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 %}