exclude nulls

This commit is contained in:
Eric Laurello 2025-04-03 08:27:23 -04:00
parent a56560e3a1
commit d5aa06a163

View File

@ -3,7 +3,7 @@
unique_key = "tx_id",
incremental_strategy = 'delete+insert',
cluster_by = 'block_timestamp::DATE',
post_hook = "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION",
post_hook = "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION; ",
tags = ['core']
) }}
@ -27,6 +27,7 @@ WITH base_table AS (
{{ ref('bronze__transactions') }}
WHERE
DATA :error :code IS NULL
AND block_id IS NOT NULL
{% if is_incremental() %}
AND _inserted_timestamp >= (