From ac34be57f6bba0816a91f8e547a3edc3e734f663 Mon Sep 17 00:00:00 2001 From: GuyEshdat Date: Sun, 9 Nov 2025 18:11:47 +0200 Subject: [PATCH 1/3] made the description of the anomaly test more accurate --- macros/edr/alerts/anomaly_detection_description.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macros/edr/alerts/anomaly_detection_description.sql b/macros/edr/alerts/anomaly_detection_description.sql index 8c0a11e5f..962f20358 100644 --- a/macros/edr/alerts/anomaly_detection_description.sql +++ b/macros/edr/alerts/anomaly_detection_description.sql @@ -10,7 +10,7 @@ {% endmacro %} {% macro freshness_description() %} - 'Last update was at ' || anomalous_value || ', ' || {{ elementary.edr_cast_as_string('abs(round(' ~ elementary.edr_cast_as_numeric('metric_value/3600') ~ ', 2))') }} || ' hours ago. Usually the table is updated within ' || {{ elementary.edr_cast_as_string('abs(round(' ~ elementary.edr_cast_as_numeric('training_avg/3600') ~ ', 2))') }} || ' hours.' + 'Last update was at ' || anomalous_value || ', ' || {{ elementary.edr_cast_as_string('abs(round(' ~ elementary.edr_cast_as_numeric('metric_value/3600') ~ ', 2))') }} || ' hours before the execution of this test. Usually the table is updated within ' || {{ elementary.edr_cast_as_string('abs(round(' ~ elementary.edr_cast_as_numeric('training_avg/3600') ~ ', 2))') }} || ' hours.' {% endmacro %} {% macro table_metric_description() %} From 44f3504411775ae7cfedffa69d7ac5b39a1a0db1 Mon Sep 17 00:00:00 2001 From: GuyEshdat Date: Sun, 9 Nov 2025 18:18:32 +0200 Subject: [PATCH 2/3] made the description of the anomaly test more accurate --- macros/edr/alerts/anomaly_detection_description.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macros/edr/alerts/anomaly_detection_description.sql b/macros/edr/alerts/anomaly_detection_description.sql index 962f20358..7559d3b17 100644 --- a/macros/edr/alerts/anomaly_detection_description.sql +++ b/macros/edr/alerts/anomaly_detection_description.sql @@ -10,7 +10,7 @@ {% endmacro %} {% macro freshness_description() %} - 'Last update was at ' || anomalous_value || ', ' || {{ elementary.edr_cast_as_string('abs(round(' ~ elementary.edr_cast_as_numeric('metric_value/3600') ~ ', 2))') }} || ' hours before the execution of this test. Usually the table is updated within ' || {{ elementary.edr_cast_as_string('abs(round(' ~ elementary.edr_cast_as_numeric('training_avg/3600') ~ ', 2))') }} || ' hours.' + 'Last update was at ' || anomalous_value || ', ' || 'which is' || {{ elementary.edr_cast_as_string('abs(round(' ~ elementary.edr_cast_as_numeric('metric_value/3600') ~ ', 2))') }} || ' hours without updates (only full buckets are considered). Usually the table is updated within ' || {{ elementary.edr_cast_as_string('abs(round(' ~ elementary.edr_cast_as_numeric('training_avg/3600') ~ ', 2))') }} || ' hours.' {% endmacro %} {% macro table_metric_description() %} From f1cb120cb9d6975dc27db92838b2afa1946d0577 Mon Sep 17 00:00:00 2001 From: GuyEshdat Date: Mon, 1 Dec 2025 23:56:14 +0200 Subject: [PATCH 3/3] changed failures and affected_rows fields to be bigint in schema, so it will match the code of the table --- models/run_results.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models/run_results.yml b/models/run_results.yml index 329b6e0c3..3c188903b 100644 --- a/models/run_results.yml +++ b/models/run_results.yml @@ -197,7 +197,7 @@ models: description: End time of resource compile action. - name: rows_affected - data_type: int + data_type: bigint description: "" - name: full_refresh @@ -209,7 +209,7 @@ models: description: The compiled code (SQL / Python) executed against the database. - name: failures - data_type: int + data_type: bigint description: Number of failures in this run. - name: query_id