Skip to content

Commit 44c9ab8

Browse files
committed
fix flag
1 parent c5e9ad1 commit 44c9ab8

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

dbt/adapters/databricks/impl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@
123123
) # type: ignore[typeddict-item]
124124

125125
USE_REPLACE_ON_FOR_INSERT_OVERWRITE = BehaviorFlag(
126-
name="use_insert_replace_on",
126+
name="use_replace_on_for_insert_overwrite",
127127
default=False,
128128
description=(
129129
"Use the new INSERT REPLACE ON syntax for insert_overwrite incremental strategy."

dbt/include/databricks/macros/materializations/incremental/strategies.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
{%- set dest_cols_csv = dest_columns | join(', ') -%}
4040
{%- set source_cols_csv = common_columns | join(', ') -%}
4141

42-
{%- if (adapter.is_cluster() and adapter.compare_dbr_version(17, 1) >= 0) or (not adapter.is_cluster() and adapter.behavior.use_insert_replace_on) -%}
42+
{%- if (adapter.is_cluster() and adapter.compare_dbr_version(17, 1) >= 0) or (not adapter.is_cluster() and adapter.behavior.use_replace_on_for_insert_overwrite) -%}
4343
{{ get_insert_replace_on_sql(source_relation, target_relation, source_cols_csv) }}
4444
{%- else -%}
4545
{#-- Use traditional INSERT OVERWRITE for older DBR versions and SQL warehouses with behavior flag disabled --#}

0 commit comments

Comments
 (0)