add lookback to wormhole (#1090)

add lookback
This commit is contained in:
Sam 2025-06-19 09:59:41 +08:00 committed by GitHub
parent 08f1f7b0a9
commit 9beb35beb0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -71,7 +71,7 @@ WITH token_transfers AS (
{% if is_incremental() %}
AND tr.modified_timestamp >= (
SELECT
MAX(_inserted_timestamp) - INTERVAL '12 hours'
MAX(_inserted_timestamp) - INTERVAL '{{ var("LOOKBACK", "12 hours") }}'
FROM
{{ this }}
)
@ -132,7 +132,7 @@ native_transfers AS (
{% if is_incremental() %}
AND et.modified_timestamp >= (
SELECT
MAX(_inserted_timestamp) - INTERVAL '12 hours'
MAX(_inserted_timestamp) - INTERVAL '{{ var("LOOKBACK", "12 hours") }}'
FROM
{{ this }}
)