Hi community,
I am getting this compilation error with the following incremental model using dbt-sqlserver (dbt version 1.4.1).
Error message:
Compilation Error in model Stg_Usz_DRG_Diagnosis_v1 (models\staging\Stg_Usz_DRG_Diagnosis_v1.sql)
macro ‘dbt_macro__sqlserver__get_delete_insert_merge_sql’ takes not more than 4 argument(s)
If I remove the unique_key dbt runs fine. Any suggestions would be much appreciated.
MyModel.sql:
{{
config(
materialized='incremental',
unique_key='Diagnosis_ID'
)
}}
select * from {{source('EntityView', 'Usz_DRG_Diagnosis') }}
{% if is_incremental() %}
-- this filter will only be applied on an incremental run
where LastUpdateDateTime >= (select max(LastUpdateDateTime) from {{ this }})
{% endif %}
Thanks Bruno, I will test this asap (I am having other proxy issues) but I would find it surprising that installing dbt-sqlserver includes an incompatible dbt-core version.
Best