DBT Test: Relationships Gold Indonesia Bol Coffee 2020 Country Of Destination Country Name Ref Postgres Countries
DBT test name: relationships_gold_indonesia_bol_coffee_2020_country_of_destination__country_name__ref_postgres_countries_
DBT details
-
Kind:
generic(relationships) -
Column under test:
country_of_destination -
Test file: trase/data_pipeline/models/indonesia/trade/bol/2020/gold/_schema_indonesia_coffee.yml
Description
No description
Details
Models
Macros
test_relationshipsget_where_subquery
{{ test_relationships(**_dbt_generic_test_kwargs) }}{{ config(alias="relationships_gold_indonesia_b_42ffe1e8b6c19fc73d9acb2628aa097d") }}
with child as (
select country_of_destination as from_field
from "trase_production"."main_indonesia_coffee"."gold_indonesia_bol_coffee_2020"
where country_of_destination 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