From 82540d4065a526131a09ac3fa61de90c25440ca8 Mon Sep 17 00:00:00 2001 From: Michelle Ark Date: Sun, 22 Sep 2024 19:13:56 +0100 Subject: [PATCH] Add required 'begin' config for testing microbatch models --- tests/functional/adapter/test_incremental_microbatch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/functional/adapter/test_incremental_microbatch.py b/tests/functional/adapter/test_incremental_microbatch.py index bbb57f96c..f228c370c 100644 --- a/tests/functional/adapter/test_incremental_microbatch.py +++ b/tests/functional/adapter/test_incremental_microbatch.py @@ -6,7 +6,7 @@ # No requirement for a unique_id for snowflake microbatch! _microbatch_model_no_unique_id_sql = """ -{{ config(materialized='incremental', incremental_strategy='microbatch', event_time='event_time', batch_size='day') }} +{{ config(materialized='incremental', incremental_strategy='microbatch', event_time='event_time', batch_size='day', begin=modules.datetime.datetime(2020, 1, 1, 0, 0, 0)) }} select * from {{ ref('input_model') }} """