fix inc
Some checks failed
docs_update / docs_update (push) Has been cancelled
docs_update / notify-failure (push) Has been cancelled
dbt_test_monthly / run_dbt_jobs (push) Has been cancelled
dbt_test_monthly / notify-failure (push) Has been cancelled

This commit is contained in:
Eric Laurello 2025-11-24 11:19:33 -05:00
parent 6829c84664
commit e8f810ee81
2 changed files with 4 additions and 11 deletions

View File

@ -98,14 +98,6 @@ FROM
WHERE
GREATEST(
A.modified_timestamp,
COALESCE(
t_in.modified_timestamp,
'2000-01-01'
),
COALESCE(
t_out.modified_timestamp,
'2000-01-01'
),
COALESCE(
p_in.modified_timestamp,
'2000-01-01'
@ -113,7 +105,8 @@ WHERE
COALESCE(
p_out.modified_timestamp,
'2000-01-01'
)
),
SYSDATE() :: DATE - 7
) >= GREATEST(
(
SELECT
@ -123,6 +116,6 @@ WHERE
FROM
{{ this }}
),
SYSDATE() :: DATE - 3
SYSDATE() :: DATE - 1
)
{% endif %}

View File

@ -28,7 +28,7 @@ GROUP BY
) %}
{% set min_block_date_query %}
SELECT
MIN(block_timestamp)
GREATEST(MIN(block_timestamp),SYSDATE()::DATE - 3) AS min_block_date
FROM
{{ ref('silver__dex_swaps_combined') }} A
LEFT JOIN core.dex_swaps__mod_intermediate_tmp b