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