We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47b19b0 commit 276ccffCopy full SHA for 276ccff
.changes/unreleased/Fixes-20240425-133610.yaml
@@ -0,0 +1,6 @@
1
+kind: Fixes
2
+body: Fix is_replaceable check with wrong variable
3
+time: 2024-04-25T13:36:10.684598+08:00
4
+custom:
5
+ Author: rongfengliang
6
+ Issue: "187"
dbt/include/global_project/macros/relations/replace.sql
@@ -8,7 +8,7 @@
8
9
{# /* use a create or replace statement if possible */ #}
10
11
- {% set is_replaceable = existing_relation.type == target_relation_type and existing_relation.can_be_replaced %}
+ {% set is_replaceable = existing_relation.type == target_relation.type and existing_relation.can_be_replaced %}
12
13
{% if is_replaceable and existing_relation.is_view %}
14
{{ get_replace_view_sql(target_relation, sql) }}
0 commit comments