mirror of
https://github.com/FlipsideCrypto/solana-models.git
synced 2026-02-06 15:56:47 +00:00
incremental filter to last 3 days (#820)
This commit is contained in:
parent
e31ac374d1
commit
8054e1f72d
@ -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 }}
|
||||
)
|
||||
|
||||
@ -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 }}
|
||||
)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user