mirror of
https://github.com/FlipsideCrypto/optimism-models.git
synced 2026-02-06 16:21:47 +00:00
added incremental logic on velodrome cte
This commit is contained in:
parent
77b1a4cbb4
commit
8537f366b1
@ -180,6 +180,15 @@ velodrome_swaps AS (
|
||||
FROM
|
||||
{{ ref('velodrome__ez_swaps') }}
|
||||
s
|
||||
{% if is_incremental() %}
|
||||
WHERE
|
||||
block_timestamp >= (
|
||||
SELECT
|
||||
MAX(block_timestamp) :: DATE - 7
|
||||
FROM
|
||||
{{ this }}
|
||||
)
|
||||
{% endif %}
|
||||
),
|
||||
sushi_swaps AS (
|
||||
SELECT
|
||||
|
||||
Loading…
Reference in New Issue
Block a user