From a562f799192605c35c7244a91fbcf10d6add69a5 Mon Sep 17 00:00:00 2001 From: drethereum <71602799+drethereum@users.noreply.github.com> Date: Thu, 28 Sep 2023 14:27:17 -0600 Subject: [PATCH] filter (#71) --- models/streamline/silver/core/retry/_missing_receipts.sql | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/models/streamline/silver/core/retry/_missing_receipts.sql b/models/streamline/silver/core/retry/_missing_receipts.sql index aec1d4d4..fb055b60 100644 --- a/models/streamline/silver/core/retry/_missing_receipts.sql +++ b/models/streamline/silver/core/retry/_missing_receipts.sql @@ -29,4 +29,6 @@ WHERE lookback ) AND t.block_timestamp >= DATEADD('hour', -84, SYSDATE()) - AND r._inserted_timestamp >= DATEADD('hour', -84, SYSDATE()) + AND ( + r._inserted_timestamp >= DATEADD('hour', -84, SYSDATE()) + OR r._inserted_timestamp IS NULL)