add change tracking (#63)

This commit is contained in:
tarikceric 2025-07-24 19:51:23 -07:00 committed by GitHub
parent 285be4b1c2
commit e50f9f6e60
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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