From ca87722d6fa89ca6cceb1e6df2edf4f44fafca56 Mon Sep 17 00:00:00 2001 From: Itamar Hartstein Date: Sun, 3 Dec 2023 15:39:08 +0200 Subject: [PATCH] change alerts models to sync_all_columns --- elementary/monitor/dbt_project/models/alerts/alerts.sql | 2 +- elementary/monitor/dbt_project/models/alerts/alerts_models.sql | 2 +- .../dbt_project/models/alerts/alerts_source_freshness.sql | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/elementary/monitor/dbt_project/models/alerts/alerts.sql b/elementary/monitor/dbt_project/models/alerts/alerts.sql index 94461ff1f..94e327aee 100644 --- a/elementary/monitor/dbt_project/models/alerts/alerts.sql +++ b/elementary/monitor/dbt_project/models/alerts/alerts.sql @@ -3,7 +3,7 @@ materialized = 'incremental', unique_key = 'alert_id', merge_update_columns = ['alert_id'], - on_schema_change = 'append_new_columns', + on_schema_change = 'sync_all_columns', table_type=elementary.get_default_table_type(), incremental_strategy=elementary.get_default_incremental_strategy() ) diff --git a/elementary/monitor/dbt_project/models/alerts/alerts_models.sql b/elementary/monitor/dbt_project/models/alerts/alerts_models.sql index a2ab1b3d5..aa2dc89d1 100644 --- a/elementary/monitor/dbt_project/models/alerts/alerts_models.sql +++ b/elementary/monitor/dbt_project/models/alerts/alerts_models.sql @@ -3,7 +3,7 @@ materialized = 'incremental', unique_key = 'alert_id', merge_update_columns = ['alert_id'], - on_schema_change = 'append_new_columns', + on_schema_change = 'sync_all_columns', table_type=elementary.get_default_table_type(), incremental_strategy=elementary.get_default_incremental_strategy() ) diff --git a/elementary/monitor/dbt_project/models/alerts/alerts_source_freshness.sql b/elementary/monitor/dbt_project/models/alerts/alerts_source_freshness.sql index 972c2dac3..de07a8b3f 100644 --- a/elementary/monitor/dbt_project/models/alerts/alerts_source_freshness.sql +++ b/elementary/monitor/dbt_project/models/alerts/alerts_source_freshness.sql @@ -3,7 +3,7 @@ materialized = 'incremental', unique_key = 'alert_id', merge_update_columns = ['alert_id'], - on_schema_change = 'append_new_columns', + on_schema_change = 'sync_all_columns', table_type=elementary.get_default_table_type(), incremental_strategy=elementary.get_default_incremental_strategy() )