mirror of
https://github.com/FlipsideCrypto/near-models.git
synced 2026-02-06 13:41:54 +00:00
logic fix
This commit is contained in:
parent
ffb1559413
commit
eafcf167fa
@ -32,7 +32,8 @@ tbl AS (
|
||||
LEFT JOIN {{ ref('streamline__chunks') }} A ON A.block_id = C.block_id
|
||||
LEFT JOIN {{ ref('streamline__chunks_complete') }} B ON A.chunk_hash = B.chunk_hash
|
||||
WHERE
|
||||
B.chunk_hash IS NULL
|
||||
A.chunk_hash IS NOT NULL
|
||||
AND B.chunk_hash IS NULL
|
||||
)
|
||||
{% else %}
|
||||
{% if var('STREAMLINE_BACKFILL', false) %}
|
||||
|
||||
@ -37,8 +37,8 @@ tbl AS (
|
||||
LEFT JOIN {{ ref('streamline__transactions') }} A ON A.block_id = C.block_id
|
||||
LEFT JOIN {{ ref('streamline__transactions_complete') }} B ON A.tx_hash = B.tx_hash
|
||||
WHERE
|
||||
B.tx_hash IS NULL
|
||||
AND A.signer_id IS NOT NULL
|
||||
A.tx_hash IS NOT NULL
|
||||
AND B.tx_hash IS NULL
|
||||
)
|
||||
{% else %}
|
||||
{% if var('STREAMLINE_BACKFILL', false) %}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user