Skip to content

Commit

Permalink
Add required 'begin' config for testing microbatch models (#314)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichelleArk authored Sep 23, 2024
1 parent 1f629de commit f37b4cd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .changes/unreleased/Under the Hood-20240923-184719.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
kind: Under the Hood
body: 'dbt-tests-adapters: Add required begin to microbatch model config to BaseMicrobatch
test'
time: 2024-09-23T18:47:19.171618+01:00
custom:
Author: michelleark
Issue: "315"
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"""

_microbatch_model_sql = """
{{ config(materialized='incremental', incremental_strategy='microbatch', unique_key='id', event_time='event_time', batch_size='day') }}
{{ config(materialized='incremental', incremental_strategy='microbatch', unique_key='id', event_time='event_time', batch_size='day', begin=modules.datetime.datetime(2020, 1, 1, 0, 0, 0)) }}
select * from {{ ref('input_model') }}
"""

Expand Down

0 comments on commit f37b4cd

Please sign in to comment.