add filter to txs final

This commit is contained in:
Jack Forgash 2023-10-12 16:53:40 -06:00
parent bd08ee7f8f
commit 379e410843

View File

@ -11,9 +11,11 @@ WITH txs AS (
*
FROM
{{ ref('silver__streamline_transactions') }}
WHERE
block_number >= {{ var('STREAMLINE_START_BLOCK') }}
{% if is_incremental() %}
WHERE
AND
_inserted_timestamp >= (
SELECT
MAX(_inserted_timestamp) _inserted_timestamp