DBT Test: Relationships Global Coffee 2020 Tanzania Country Of Production Name Country Name Ref Postgres Countries
DBT test name: relationships_global_coffee_2020_tanzania_country_of_production_name__country_name__ref_postgres_countries_
DBT details
-
Kind:
generic(relationships) -
Column under test:
country_of_production_name -
Test file: trase/data_pipeline/models/world/global_coffee/results/_schema.yml
Description
No description
Details
{{ test_relationships(**_dbt_generic_test_kwargs) }}{{ config(alias="relationships_global_coffee_20_e8f5c2200f169189dc53656f45f3f43e") }}
with child as (
select country_of_production_name as from_field
from "memory"."main"."global_coffee_2020_tanzania"
where country_of_production_name is not null
),
parent as (
select country_name as to_field
from "memory"."main"."postgres_countries"
)
select
from_field
from child
left join parent
on child.from_field = parent.to_field
where parent.to_field is null