solana-models/tests/test_streamline__complete_decoded_instructions_2__missing.sql
Eric Laurello 2394e39329
Some checks failed
docs_update / run_dbt_jobs (push) Has been cancelled
docs_update / notify-failure (push) Has been cancelled
dbt_run_streamline_solscan_token_list / run_dbt_jobs (push) Has been cancelled
dbt_run_streamline_solscan_token_list / notify-failure (push) Has been cancelled
dbt_test_scheduled_weekly / run_dbt_jobs (push) Has been cancelled
dbt_test_scheduled_weekly / notify-failure (push) Has been cancelled
disable failing test
2025-11-07 14:54:15 -05:00

26 lines
1.0 KiB
SQL

{{
config(
tags=["test_hourly_deprecated"]
,enabled = false
)
}}
SELECT
MD5(
CAST(
COALESCE(CAST(block_id AS text), '_dbt_utils_surrogate_key_null_') || '-' || COALESCE(CAST(tx_id AS text), '_dbt_utils_surrogate_key_null_') || '-' || COALESCE(CAST(INDEX AS text), '_dbt_utils_surrogate_key_null_') || '-' || COALESCE(CAST(inner_index AS text), '_dbt_utils_surrogate_key_null_') || '-' || COALESCE(CAST(program_id AS text), '_dbt_utils_surrogate_key_null_') AS text
)
) AS complete_decoded_instructions_2_id
FROM
{{ target.database }}.bronze.streamline_decoded_instructions_2
WHERE
_partition_by_created_date_hour >= dateadd('hour',-3,date_trunc('hour',current_timestamp()))
AND _partition_by_created_date_hour < dateadd('hour',-2, date_trunc('hour',current_timestamp()))
EXCEPT
SELECT
complete_decoded_instructions_2_id
FROM
{{ ref('streamline__complete_decoded_instructions_2') }}
WHERE
_inserted_timestamp >= dateadd('hour',-3,date_trunc('hour',current_timestamp()))