From 4311eb59b4b381955d558c45ef8e4bb34f15d485 Mon Sep 17 00:00:00 2001 From: Abhishek Singh Date: Wed, 5 Jun 2024 16:32:19 -0700 Subject: [PATCH] Fixed SQL generation for delete+insert incremental append strategy --- .../oracle/macros/materializations/incremental/strategies.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbt/include/oracle/macros/materializations/incremental/strategies.sql b/dbt/include/oracle/macros/materializations/incremental/strategies.sql index 97be12b..dad5005 100644 --- a/dbt/include/oracle/macros/materializations/incremental/strategies.sql +++ b/dbt/include/oracle/macros/materializations/incremental/strategies.sql @@ -193,7 +193,7 @@ from {{ temp_relation }})'; END; {%- else -%} - insert {%- if parallel -%} /*+parallel({{ parallel }})*/ {%- endif -%} into {{ target_relation }} ({{ dest_cols_csv }}) + insert {% if parallel %} /*+parallel({{ parallel }})*/ {% endif %} into {{ target_relation }} ({{ dest_cols_csv }}) ( select {{ dest_cols_csv }} from {{ temp_relation }}