Skip to content

Commit

Permalink
Fix for: #819
Browse files Browse the repository at this point in the history
  • Loading branch information
jelmerk authored and benc-db committed Oct 4, 2024
1 parent d2f3f82 commit fc9588a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
### 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))
- Don't define table properties on snapshot staging views ([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 fc9588a

Please sign in to comment.