Skip to content

Commit

Permalink
Fix for: #819 (#820)
Browse files Browse the repository at this point in the history
Co-authored-by: Ben Cassell <98852248+benc-db@users.noreply.github.com>
  • Loading branch information
jelmerk and benc-db authored Oct 4, 2024
1 parent d2f3f82 commit fa5f89e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

### Fixes

- Stop setting cluster by to None. If you want to drop liquid clustering, you will need to full-refresh ([806](https://github.com/databricks/dbt-databricks/pull/806))
- Stop setting cluster by to None. If you want to drop liquid clustering, you will need to full-refresh ([806]https://github.com/databricks/dbt-databricks/pull/806)
- Don't define table properties on snapshot staging views (thanks @jelmerk!) ([820](https://github.com/databricks/dbt-databricks/pull/820))

## dbt-databricks 1.8.6 (September 18, 2024)

Expand Down
4 changes: 3 additions & 1 deletion dbt/include/databricks/macros/materializations/snapshot.sql
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@

{# needs to be a non-temp view so that its columns can be ascertained via `describe` #}
{% call statement('build_snapshot_staging_relation') %}
{{ create_view_as(tmp_relation, select) }}
create or replace view {{ tmp_relation }}
as
{{ select }}
{% endcall %}

{% do return(tmp_relation) %}
Expand Down

0 comments on commit fa5f89e

Please sign in to comment.