add block timestamp to join (#457)

This commit is contained in:
desmond-hui 2024-01-23 09:09:34 -08:00 committed by GitHub
parent e40985d46f
commit 6c1b964191
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -27,6 +27,7 @@ FROM
{{ ref('silver__decoded_instructions') }} A
JOIN {{ ref('silver__events') }}
b
ON A.program_id = b.program_id
ON A.block_timestamp::date = b.block_timestamp::date
AND A.program_id = b.program_id
AND A.tx_id = b.tx_id
AND A.index = b.index