Skip to content

Commit

Permalink
replace is_replaceable function with can_be_replaced call (#8637)
Browse files Browse the repository at this point in the history
  • Loading branch information
colin-rogers-dbt authored Sep 13, 2023
1 parent 5182e3c commit 8aaed0e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@

{# /* use a create or replace statement if possible */ #}

{% set is_replaceable = existing_relation.type == target_relation_type and existing_relation.is_replaceable %}
{% set is_replaceable = existing_relation.type == target_relation_type and existing_relation.can_be_replaced %}

{% if is_replaceable and existing_relation.is_view %}
{{ get_replace_view_sql(target_relation, sql) }}

0 comments on commit 8aaed0e

Please sign in to comment.