mirror of
https://github.com/FlipsideCrypto/solana-models.git
synced 2026-02-06 15:56:47 +00:00
look for new data in current max partition also (#784)
This commit is contained in:
parent
634d9db3e6
commit
759603a6e1
@ -13,7 +13,7 @@ FROM
|
||||
{{ ref('bronze__streamline_block_txs_2') }}
|
||||
WHERE
|
||||
{% if is_incremental() %}
|
||||
_partition_id > (SELECT max(_partition_id) FROM {{ this }})
|
||||
_partition_id >= (SELECT max(_partition_id) FROM {{ this }})
|
||||
AND _inserted_timestamp >= (SELECT max(_inserted_timestamp) FROM {{ this }})
|
||||
{% else %}
|
||||
_partition_id = (SELECT max(_partition_id) FROM {{ source('solana_streamline', 'complete_block_txs_2') }}) -- Reference this once to get a starting point
|
||||
|
||||
Loading…
Reference in New Issue
Block a user