dbt - Incremental Models
What will happen if you run this dbt model with
is_incremental() logic and the target table is empty?{% if is_incremental() %}
SELECT * FROM source_table WHERE id > (SELECT MAX(id) FROM {{ this }})
{% else %}
SELECT * FROM source_table
{% endif %}