dbt - Incremental Models
This dbt model uses
What is the problem?
is_incremental() but does not insert new rows during incremental runs:{% if is_incremental() %}
SELECT * FROM source_table WHERE updated_at < (SELECT MAX(updated_at) FROM {{ this }})
{% else %}
SELECT * FROM source_table
{% endif %}What is the problem?
