Skip to content

DBT Test: Relationships Global Coffee 2020 External Country Of Production Country Name Ref Postgres Countries

DBT test name: relationships_global_coffee_2020_external_country_of_production__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_global_coffee_20_ad6b37da59cedc40ea694123743ddec4") }}
with child as (
    select country_of_production as from_field
    from "memory"."main"."global_coffee_2020_external"
    where country_of_production 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