DBT Test: Unique Postgres Countries Iso Alpha 3
DBT test name: unique_postgres_countries_iso_alpha_3
DBT details
-
Kind:
generic(unique) -
Column under test:
iso_alpha_3 -
Test file: trase/data_pipeline/models/postgres_views/_schema_postgres_tables.yml
Description
No description
Details
{{ test_unique(**_dbt_generic_test_kwargs) }}
select
iso_alpha_3 as unique_field,
count(*) as n_records
from "trase_production"."main"."postgres_countries"
where iso_alpha_3 is not null
group by iso_alpha_3
having count(*) > 1