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