solana-models/tests/test_silver__decoded_instructions_missing.sql

31 lines
602 B
MySQL
Raw Normal View History

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
{% else %}
2025-10-01 20:00:29 +00:00
solana_dev.streamline.complete_decoded_instructions_3
{% 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