mirror of
https://github.com/FlipsideCrypto/osmosis-models.git
synced 2026-02-06 11:47:03 +00:00
lag
This commit is contained in:
parent
2cb35d063b
commit
ab92f4b22e
@ -55,10 +55,15 @@ FROM
|
||||
|
||||
{% if is_incremental() %}
|
||||
WHERE
|
||||
_inserted_timestamp >= (
|
||||
_inserted_timestamp >= DATEADD(
|
||||
'minute',
|
||||
-30,(
|
||||
SELECT
|
||||
MAX(_inserted_timestamp)
|
||||
MAX(
|
||||
_inserted_timestamp
|
||||
)
|
||||
FROM
|
||||
{{ this }}
|
||||
)
|
||||
)
|
||||
{% endif %}
|
||||
|
||||
@ -66,7 +66,9 @@ WITH b AS (
|
||||
|
||||
{% if is_incremental() %}
|
||||
WHERE
|
||||
_inserted_timestamp >= (
|
||||
_inserted_timestamp >= DATEADD(
|
||||
'minute',
|
||||
-30,(
|
||||
SELECT
|
||||
MAX(
|
||||
_inserted_timestamp
|
||||
@ -74,6 +76,7 @@ WHERE
|
||||
FROM
|
||||
{{ this }}
|
||||
)
|
||||
)
|
||||
{% endif %}
|
||||
),
|
||||
prefinal AS (
|
||||
|
||||
Loading…
Reference in New Issue
Block a user