mirror of
https://github.com/FlipsideCrypto/solana-models.git
synced 2026-02-06 11:27:00 +00:00
remove unnecessary MAX()
This commit is contained in:
parent
0458b47dbd
commit
3575403e18
@ -53,7 +53,7 @@ WHERE
|
||||
{{ this }}
|
||||
)
|
||||
AND
|
||||
A._partition_by_created_date_hour >= dateadd('hour', -3, MAX(current_timestamp()))
|
||||
A._partition_by_created_date_hour >= dateadd('hour', -3, current_timestamp())
|
||||
{% endif %}
|
||||
|
||||
qualify(ROW_NUMBER() over (PARTITION BY tx_id, INDEX, coalesce(inner_index,-1)
|
||||
|
||||
@ -27,7 +27,7 @@ WHERE
|
||||
{{ this }}
|
||||
)
|
||||
AND
|
||||
_partition_by_created_date_hour >= dateadd('hour', -3, MAX(current_timestamp()))
|
||||
_partition_by_created_date_hour >= dateadd('hour', -3, current_timestamp())
|
||||
{% else %}
|
||||
{{ ref('bronze__streamline_FR_decoded_instructions_2') }}
|
||||
{% endif %}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user