2024-01-09 16:31:00 +00:00
|
|
|
SELECT
|
|
|
|
|
block_id,
|
|
|
|
|
tx_id,
|
|
|
|
|
INDEX,
|
|
|
|
|
COALESCE(
|
|
|
|
|
inner_index,
|
|
|
|
|
-1
|
|
|
|
|
)
|
|
|
|
|
FROM
|
|
|
|
|
{% if target.database == 'SOLANA' %}
|
2025-10-01 20:00:29 +00:00
|
|
|
solana.streamline.complete_decoded_instructions_3
|
2024-01-09 16:31:00 +00:00
|
|
|
{% else %}
|
2025-10-01 20:00:29 +00:00
|
|
|
solana_dev.streamline.complete_decoded_instructions_3
|
2024-01-09 16:31:00 +00:00
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
WHERE
|
|
|
|
|
_inserted_timestamp between current_date - 2 and current_date - 1
|
|
|
|
|
EXCEPT
|
|
|
|
|
SELECT
|
|
|
|
|
block_id,
|
|
|
|
|
tx_id,
|
|
|
|
|
INDEX,
|
|
|
|
|
COALESCE(
|
|
|
|
|
inner_index,
|
|
|
|
|
-1
|
|
|
|
|
)
|
|
|
|
|
FROM
|
|
|
|
|
{{ ref('silver__decoded_instructions') }}
|
|
|
|
|
WHERE
|
|
|
|
|
_inserted_timestamp BETWEEN current_date - 2 and current_date - 1
|