mirror of
https://github.com/FlipsideCrypto/movement-models.git
synced 2026-02-06 14:11:45 +00:00
updated join criteria and revised incremental logic to modified_timestamp
This commit is contained in:
parent
8c7a989553
commit
8039a92698
@ -35,11 +35,11 @@ FROM
|
||||
LEFT JOIN {{ ref('price__ez_prices_hourly') }}
|
||||
p
|
||||
ON s.block_timestamp_hour = p.hour
|
||||
AND p.is_native
|
||||
WHERE
|
||||
p.is_native
|
||||
{% if is_incremental() %}
|
||||
AND s.block_timestamp_hour >= (
|
||||
s.modified_timestamp >= (
|
||||
SELECT
|
||||
MAX(block_timestamp_hour)
|
||||
MAX(modified_timestamp)
|
||||
FROM {{ this }})
|
||||
{% endif %}
|
||||
Loading…
Reference in New Issue
Block a user