logic fix

This commit is contained in:
jacksan 2025-04-03 15:20:34 -06:00
parent ffb1559413
commit eafcf167fa
2 changed files with 4 additions and 3 deletions

View File

@ -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) %}

View File

@ -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) %}