lag to modified ts

This commit is contained in:
Eric Laurello 2024-08-09 10:46:14 -04:00
parent 9fd1051aa5
commit 2cb35d063b

View File

@ -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 %}