mirror of
https://github.com/FlipsideCrypto/aptos-models.git
synced 2026-02-06 11:06:43 +00:00
fix inc
This commit is contained in:
parent
6829c84664
commit
e8f810ee81
@ -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 %}
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user