DBT Test: Relationships Diet Trase Coffee 2020 Country Of Production Country Name Ref Postgres Countries
DBT test name: relationships_diet_trase_coffee_2020_country_of_production__country_name__ref_postgres_countries_
DBT details
-
Kind:
generic(relationships) -
Column under test:
country_of_production -
Test file: trase/data_pipeline/models/diet_trase/_schema.yml
Description
No description
Details
{{ test_relationships(**_dbt_generic_test_kwargs) }}{{ config(alias="relationships_diet_trase_coffe_e1846579f94da1b75894ff9aa12e340e") }}
with child as (
select country_of_production as from_field
from "trase_production"."main"."diet_trase_coffee_2020"
where country_of_production is not null
),
parent as (
select country_name as to_field
from "trase_production"."main"."postgres_countries"
)
select
from_field
from child
left join parent
on child.from_field = parent.to_field
where parent.to_field is null