Fix test macro (#1012)

* update macro

* on join
This commit is contained in:
Austin 2025-01-30 15:45:18 -05:00 committed by GitHub
parent a58138218e
commit ee5e2bab2d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -18,14 +18,16 @@ WHERE
{% test missing_decoded_traces(model) %}
SELECT
t.block_number,
t._call_id
t.tx_hash,
t.trace_index
FROM
{{ ref('silver__traces') }}
{{ ref('core__fact_traces') }}
t
LEFT JOIN {{ model }}
d
ON t.block_number = d.block_number
AND t._call_id = d._call_id
AND t.tx_hash = d.tx_hash
AND t.trace_index = d.trace_index
WHERE
t.to_address = '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2' -- WETH
AND LEFT(