diff --git a/core/dbt/include/global_project/macros/relations/replace.sql b/core/dbt/include/global_project/macros/relations/replace.sql index 61c72cd3f4f..adba77dc769 100644 --- a/core/dbt/include/global_project/macros/relations/replace.sql +++ b/core/dbt/include/global_project/macros/relations/replace.sql @@ -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) }}