mirror of
https://github.com/FlipsideCrypto/osmosis-models.git
synced 2026-02-06 11:26:55 +00:00
lag to modified ts
This commit is contained in:
parent
9fd1051aa5
commit
2cb35d063b
@ -9,8 +9,20 @@
|
||||
tags = ['core']
|
||||
) }}
|
||||
|
||||
WITH msg_atts AS (
|
||||
WITH MOD AS (
|
||||
|
||||
SELECT
|
||||
DATEADD(
|
||||
HOUR,
|
||||
-1,
|
||||
MAX(
|
||||
modified_timestamp
|
||||
)
|
||||
) modified_timestamp
|
||||
FROM
|
||||
{{ this }}
|
||||
),
|
||||
msg_atts AS (
|
||||
SELECT
|
||||
tx_id,
|
||||
msg_index,
|
||||
@ -27,7 +39,7 @@ WHERE
|
||||
modified_timestamp
|
||||
)
|
||||
FROM
|
||||
{{ this }}
|
||||
MOD
|
||||
)
|
||||
{% endif %}
|
||||
),
|
||||
@ -94,6 +106,6 @@ WHERE
|
||||
modified_timestamp
|
||||
)
|
||||
FROM
|
||||
{{ this }}
|
||||
MOD
|
||||
)
|
||||
{% endif %}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user