Skip to content

Commit

Permalink
Temporarily gate microbatch behind env var DBT_EXPERIMENTAL_MICROBATCH (
Browse files Browse the repository at this point in the history
  • Loading branch information
MichelleArk authored Sep 16, 2024
1 parent 858a868 commit 85292d3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions dbt/adapters/base/impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
Union,
TYPE_CHECKING,
)

import os
import pytz
from dbt_common.behavior_flags import Behavior, BehaviorFlag
from dbt_common.clients.jinja import CallableMacroGenerator
Expand Down Expand Up @@ -1573,7 +1573,11 @@ def valid_incremental_strategies(self):
return ["append"]

def builtin_incremental_strategies(self):
return ["append", "delete+insert", "merge", "insert_overwrite", "microbatch"]
builtin_strategies = ["append", "delete+insert", "merge", "insert_overwrite"]
if os.environ.get("DBT_EXPERIMENTAL_MICROBATCH"):
builtin_strategies.append("microbatch")

return builtin_strategies

@available.parse_none
def get_incremental_strategy_macro(self, model_context, strategy: str):
Expand Down

0 comments on commit 85292d3

Please sign in to comment.