mirror of
https://github.com/FlipsideCrypto/solana-models.git
synced 2026-02-06 13:26:46 +00:00
add back in incremental condition
This commit is contained in:
parent
3e9b6f418b
commit
e69f656b4b
@ -28,7 +28,10 @@ WITH base AS (
|
||||
WHERE
|
||||
tx :transaction :message :instructions [0] :parsed :type :: STRING IS NOT NULL
|
||||
AND tx :transaction :message :instructions [0] :programId :: STRING = 'Vote111111111111111111111111111111111111111'
|
||||
AND ingested_at :: DATE >= getdate() - INTERVAL '2 days'
|
||||
|
||||
{% if is_incremental() %}
|
||||
AND ingested_at :: DATE >= getdate() - INTERVAL '2 days'
|
||||
{% endif %}
|
||||
)
|
||||
SELECT
|
||||
block_timestamp,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user