mirror of
https://github.com/FlipsideCrypto/flow-models.git
synced 2026-02-06 09:37:27 +00:00
* 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
22 lines
429 B
SQL
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
|