Skip to content

DBT Test: Relationships Diet Trase Coffee 2020 Tanzania Country Of Production Name Country Name Ref Postgres Countries

DBT test name: relationships_diet_trase_coffee_2020_tanzania_country_of_production_name__country_name__ref_postgres_countries_

DBT details


Description

No description


Details

Models

Macros

  • test_relationships
  • get_where_subquery
{{ test_relationships(**_dbt_generic_test_kwargs) }}{{ config(alias="relationships_diet_trase_coffe_c9d3737ca041f51d6363337030272fde") }}
with child as (
    select country_of_production_name as from_field
    from "trase_production"."main"."diet_trase_coffee_2020_tanzania"
    where country_of_production_name 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