flow-models/tests/points/tests__unique_address_count_threshold.sql
Jack Forgash 4df472bace
AN-5459/point transfers api integration (#378)
* point transfers api integration

* upd 2 silver models

* gha workflow with auth

* upd gha workflow

* add gha on push config for testing

* add print step

* chg echo

* upd auth.py

* rm run on commit from gha

* upd model tags

* merge 2 silver into 1, add yml, upd gha

* upd auth return vals

* add exit 1 on failure

* upd return on success True

* add gha on-run config for final test

* add backup default to env_var(JWT)

* add backup default to env_var(JWT) - 2

* rm run on commit from gha and upd sql limit for balance call

* add yml for evm address model

* add evm address threshold test

* upd gha workflow

* upd per CRs
2024-11-15 09:43:52 -07:00

22 lines
429 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 > 7000