mirror of
https://github.com/FlipsideCrypto/solana-models.git
synced 2026-02-06 15:07:01 +00:00
make <= (#484)
This commit is contained in:
parent
11548d30e5
commit
1bddbd88e9
@ -8,7 +8,7 @@ FROM
|
||||
{{ target.database }}.bronze.streamline_decoded_instructions_2
|
||||
WHERE
|
||||
_partition_by_created_date_hour >= dateadd('hour',-3,date_trunc('hour',current_timestamp()))
|
||||
AND _partition_by_created_date_hour <dateadd('hour',-2, date_trunc('hour',current_timestamp()))
|
||||
AND _partition_by_created_date_hour < dateadd('hour',-2, date_trunc('hour',current_timestamp()))
|
||||
EXCEPT
|
||||
SELECT
|
||||
complete_decoded_instructions_2_id
|
||||
@ -16,4 +16,5 @@ FROM
|
||||
{{ ref('streamline__complete_decoded_instructions_2') }}
|
||||
WHERE
|
||||
_inserted_timestamp >= dateadd('hour',-3,date_trunc('hour',current_timestamp()))
|
||||
AND _inserted_timestamp < dateadd('hour',-2, date_trunc('hour',current_timestamp()))
|
||||
-- seeing situations where _inserted_timestamp hour != _partition_by_created_date_hour when files are written right at XX:00:00.000
|
||||
AND _inserted_timestamp <= dateadd('hour',-2, date_trunc('hour',current_timestamp()))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user