mirror of
https://github.com/FlipsideCrypto/solana-models.git
synced 2026-02-06 11:27:00 +00:00
Hotfix/reingest full parts to fix partial load (#204)
* temporarily reload larger range * check complete blocks for max partition instead of arbitrary range
This commit is contained in:
parent
dba8e47c4f
commit
d4ed00c3af
@ -47,18 +47,18 @@ WITH pre_final AS (
|
||||
) <> 'Vote111111111111111111111111111111111111111'
|
||||
|
||||
{% if is_incremental() %}
|
||||
AND _partition_id >= (
|
||||
SELECT
|
||||
MAX(_partition_id) -3
|
||||
FROM
|
||||
{{ this }}
|
||||
)
|
||||
AND _partition_id <= (
|
||||
SELECT
|
||||
MAX(_partition_id) + 10
|
||||
FROM
|
||||
{{ this }}
|
||||
)
|
||||
AND _partition_id >= (
|
||||
SELECT
|
||||
MAX(_partition_id) -3
|
||||
FROM
|
||||
{{ this }}
|
||||
)
|
||||
AND _partition_id <= (
|
||||
SELECT
|
||||
MAX(_partition_id)
|
||||
FROM
|
||||
{{ ref('streamline__complete_block_txs') }}
|
||||
)
|
||||
-- AND t._inserted_timestamp > (
|
||||
-- SELECT
|
||||
-- MAX(_inserted_timestamp)
|
||||
|
||||
@ -46,8 +46,10 @@ WITH pre_final AS (
|
||||
)
|
||||
AND
|
||||
_partition_id <= (
|
||||
select max(_partition_id)+10
|
||||
from {{this}}
|
||||
SELECT
|
||||
MAX(_partition_id)
|
||||
FROM
|
||||
{{ ref('streamline__complete_block_txs') }}
|
||||
)
|
||||
-- AND
|
||||
-- t._inserted_timestamp > (
|
||||
|
||||
Loading…
Reference in New Issue
Block a user