flow-models/tests/points/tests__unique_address_count_threshold.sql
Jack Forgash 15dcc02476
AN-5528/Flow API Balances - chg evm_address source (#382)
* chg evm_address source

* disable transaction_entries

* change batch
2024-11-21 13:47:12 -07:00

22 lines
430 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 > 20000