Skip to content

Commit

Permalink
Add docstring to builtin_incremental_strategies
Browse files Browse the repository at this point in the history
  • Loading branch information
QMalcolm committed Nov 13, 2024
1 parent e02b694 commit c25d40a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dbt/adapters/base/impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -1580,6 +1580,12 @@ def valid_incremental_strategies(self):
return ["append"]

def builtin_incremental_strategies(self):
"""
List of possible builtin strategies for adapters
Microbatch is added by _default_. It is only not added when the behavior flag
`require_batched_execution_for_custom_microbatch_strategy` is True.
"""
builtin_strategies = ["append", "delete+insert", "merge", "insert_overwrite"]
if not self.behavior.require_batched_execution_for_custom_microbatch_strategy.no_warn:
builtin_strategies.append("microbatch")
Expand Down

0 comments on commit c25d40a

Please sign in to comment.