dbt-clickhouse: Incremental strategy insert_delete is not valid. use_lw_deletes Being ignored
Hi There,
It seems that since version 1.3.0 the incremental strategy reference has changed but this isn’t documented.
Any model using incremental_strategy='insert+delete' throws:
The incremental strategy 'insert_delete' is not valid for Clickhouse. This is on version 1.3.2/1.3.3
Changing the strategy to incremental_strategy='delete_insert' resolves this error however it wrongfully throws this message after:
dbt_clickhouse adapter: Lightweight deletes are not available, using legacy ClickHouse strategy
Lightweight deletes are enabled in our instance.

About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 16 (9 by maintainers)
That xml should go either either into a specific user element or profile element. For my local test server I put it in the “default” profile element in my users.xml:
We’ve actually set that parameter in the profile which is why this was weird. Looking at this though I don’t think it’s actually being used but I’m not very familiar with the structure of the project.
Btw there is a PR for the updated documentation. https://github.com/dbt-labs/docs.getdbt.com/pull/2626/files