incremental filter to last 3 days (#820)

This commit is contained in:
tarikceric 2025-03-20 13:05:04 -05:00 committed by GitHub
parent e31ac374d1
commit 8054e1f72d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 11 deletions

View File

@ -34,7 +34,7 @@ more_locks AS (
AND
_inserted_timestamp >= (
SELECT
MAX(_inserted_timestamp)
GREATEST(MAX(_inserted_timestamp),current_date-3)
FROM
{{ this }}
)
@ -51,7 +51,7 @@ more_locks AS (
WHERE
_inserted_timestamp >= (
SELECT
MAX(_inserted_timestamp)
GREATEST(MAX(_inserted_timestamp),current_date-3)
FROM
{{ this }}
)
@ -84,7 +84,7 @@ WHERE
{% if is_incremental() %}
AND _inserted_timestamp >= (
SELECT
MAX(_inserted_timestamp)
GREATEST(MAX(_inserted_timestamp),current_date-3)
FROM
{{ this }}
)
@ -129,13 +129,13 @@ FROM
WHERE
e._inserted_timestamp >= (
SELECT
MAX(_inserted_timestamp)
GREATEST(MAX(_inserted_timestamp),current_date-3)
FROM
{{ this }}
)
AND t._inserted_timestamp >= (
SELECT
MAX(_inserted_timestamp)
GREATEST(MAX(_inserted_timestamp),current_date-3)
FROM
{{ this }}
)

View File

@ -21,7 +21,7 @@ WITH token_balances AS (
{% if is_incremental() %}
AND _inserted_timestamp >= (
SELECT
MAX(_inserted_timestamp)
GREATEST(MAX(_inserted_timestamp),current_date-3)
FROM
{{ this }}
)
@ -42,7 +42,7 @@ WHERE
{% if is_incremental() %}
AND _inserted_timestamp >= (
SELECT
MAX(_inserted_timestamp)
GREATEST(MAX(_inserted_timestamp),current_date-3)
FROM
{{ this }}
)
@ -69,7 +69,7 @@ marinade_lock_txs AS (
{% if is_incremental() %}
AND e._inserted_timestamp >= (
SELECT
MAX(_inserted_timestamp)
GREATEST(MAX(_inserted_timestamp),current_date-3)
FROM
{{ this }}
)
@ -101,7 +101,7 @@ WHERE
{% if is_incremental() %}
AND e._inserted_timestamp >= (
SELECT
MAX(_inserted_timestamp)
GREATEST(MAX(_inserted_timestamp),current_date-3)
FROM
{{ this }}
)
@ -136,7 +136,7 @@ b AS (
WHERE
t._inserted_timestamp >= (
SELECT
MAX(_inserted_timestamp)
GREATEST(MAX(_inserted_timestamp),current_date-3)
FROM
{{ this }}
)
@ -262,7 +262,7 @@ actions_tmp AS (
{% if is_incremental() %}
AND e._inserted_timestamp >= (
SELECT
MAX(_inserted_timestamp)
GREATEST(MAX(_inserted_timestamp),current_date-3)
FROM
{{ this }}
)