Skip to content

Commit 38f9bf9

Browse files
Update the SQL server adapter to override the supported incremental strategies that are set in the Fabric adapater to add back in merge.
There are no macros in either the Fabric or SQLServer adapater for the merge type, its all handled by the default DBT implementation.
1 parent c8b1b8f commit 38f9bf9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

dbt/adapters/sqlserver/sqlserver_adapter.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,9 @@ def render_model_constraint(cls, constraint) -> Optional[str]:
5959
@classmethod
6060
def date_function(cls):
6161
return "getdate()"
62+
63+
def valid_incremental_strategies(self):
64+
"""The set of standard builtin strategies which this adapter supports out-of-the-box.
65+
Not used to validate custom strategies defined by end users.
66+
"""
67+
return ["append", "delete+insert", "merge", "microbatch"]

0 commit comments

Comments
 (0)