From 8aaed0e29f9560bc53d9d3e88325a9597318e375 Mon Sep 17 00:00:00 2001 From: colin-rogers-dbt <111200756+colin-rogers-dbt@users.noreply.github.com> Date: Wed, 13 Sep 2023 07:19:09 -0700 Subject: [PATCH] replace is_replaceable function with can_be_replaced call (#8637) --- core/dbt/include/global_project/macros/relations/replace.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }}