Skip to content

Commit

Permalink
another missing fix
Browse files Browse the repository at this point in the history
  • Loading branch information
benc-db committed Mar 6, 2024
1 parent 18b12bf commit 18560b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dbt/include/databricks/macros/materializations/table.sql
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
-- setup: if the target relation already exists, drop it
-- in case if the existing and future table is delta, we want to do a
-- create or replace table instead of dropping, so we don't have the table unavailable
{% if old_relation and not (old_relation.is_delta and config.get('file_format', default='delta') == 'delta') -%}
{% if old_relation and (not (old_relation.is_delta and config.get('file_format', default='delta') == 'delta')) or (old_relation.is_materialized_view or old_relation.is_streaming_table) -%}
{{ adapter.drop_relation(old_relation) }}
{%- endif %}

Expand Down

0 comments on commit 18560b8

Please sign in to comment.