add change tracking

This commit is contained in:
tarikceric 2025-07-22 11:40:20 -07:00
parent 285be4b1c2
commit 30e877b503

View File

@ -44,6 +44,15 @@ models:
materialized: ephemeral
eclipse_models:
+pre-hook: '{{ fsc_utils.set_query_tag() }}'
gold:
+post-hook: >
{% if 'exclude_change_tracking' not in config.get('tags') %}
{% if config.get('materialized') == 'view' %}
ALTER VIEW {{ this }} SET CHANGE_TRACKING = TRUE;
{% else %}
ALTER TABLE {{ this }} SET CHANGE_TRACKING = TRUE;
{% endif %}
{% endif %}
tests:
+store_failures: true # all tests