flow-models/tests/points/tests__unique_address_count_threshold.sql
Jack Forgash 041626d9bc
AN-6276/add gold view to snag/transaction_entries workflow (#454)
* add gold view to snag/transaction_entries workflow

* add sortDir param

* backfill

* upd gha to hourly
2025-06-17 09:26:38 -06:00

22 lines
431 B
SQL

{{ config(
severity = "error",
tags = ["streamline_non_core"]
) }}
{# This test is to alert if the total EVM Addresses increases and the
model calling balances needs to be adjusted with a higher SQL Limit #}
WITH distinct_count AS (
SELECT
COUNT(
DISTINCT address
) AS ct
FROM
{{ ref('streamline__evm_addresses') }}
)
SELECT
*
FROM
distinct_count
WHERE
ct > 150000