diff --git a/integration_tests/tests/test_dbt_artifacts/test_microbatch_compiled_code.py b/integration_tests/tests/test_dbt_artifacts/test_microbatch_compiled_code.py index 60e49fb36..98cabc80a 100644 --- a/integration_tests/tests/test_dbt_artifacts/test_microbatch_compiled_code.py +++ b/integration_tests/tests/test_dbt_artifacts/test_microbatch_compiled_code.py @@ -7,19 +7,18 @@ def _microbatch_source_model_sql() -> str: return """ {{ config(event_time='order_date') }} -{% set event_time_data_type = 'datetime2' if target.type == 'sqlserver' else 'timestamp' %} select 1 as order_id, 1 as customer_id, 42 as amount, - cast('2024-01-01 00:00:00' as {{ event_time_data_type }}) as order_date + cast('2024-01-01 00:00:00' as {{ elementary.edr_type_timestamp() }}) as order_date union all select 2 as order_id, 2 as customer_id, 84 as amount, - cast('2025-01-01 00:00:00' as {{ event_time_data_type }}) as order_date + cast('2025-01-01 00:00:00' as {{ elementary.edr_type_timestamp() }}) as order_date """