From 8bf447b61a5cfa2306779881d76b44c74b13d8cf Mon Sep 17 00:00:00 2001 From: gregoriustanleyy Date: Thu, 10 Apr 2025 22:50:31 +0700 Subject: [PATCH] not null --- models/artemis/gold/artemis__active_users.sql | 2 ++ models/artemis/gold/artemis__tx_count.sql | 1 + 2 files changed, 3 insertions(+) diff --git a/models/artemis/gold/artemis__active_users.sql b/models/artemis/gold/artemis__active_users.sql index 437fc80..e58938f 100644 --- a/models/artemis/gold/artemis__active_users.sql +++ b/models/artemis/gold/artemis__active_users.sql @@ -19,6 +19,8 @@ FROM {{ ref('silver__artemis') }} WHERE metric = 'dau' + AND metric_value IS NOT NULL + {% if is_incremental() %} AND _inserted_timestamp >= ( SELECT COALESCE(MAX(_inserted_timestamp), '1970-01-01'::TIMESTAMP_NTZ) diff --git a/models/artemis/gold/artemis__tx_count.sql b/models/artemis/gold/artemis__tx_count.sql index 614735f..d67b724 100644 --- a/models/artemis/gold/artemis__tx_count.sql +++ b/models/artemis/gold/artemis__tx_count.sql @@ -19,6 +19,7 @@ FROM {{ ref('silver__artemis') }} WHERE metric = 'daily_txns' + AND metric_value IS NOT NULL {% if is_incremental() %} AND _inserted_timestamp >= (