File tree Expand file tree Collapse file tree
include/databricks/macros/materializations/incremental Expand file tree Collapse file tree Original file line number Diff line number Diff line change 123123) # type: ignore[typeddict-item]
124124
125125USE_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."
Original file line number Diff line number Diff line change 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 --#}
You can’t perform that action at this time.
0 commit comments