Skip to content

DBT Test: Relationships Brazil Bol 2023 Mdic Padded Port Of Import Country Name Country Name Ref Postgres Countries

DBT test name: relationships_brazil_bol_2023_mdic_padded_port_of_import_country_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_brazil_bol_2023__0d072a1afc7ce743d3baca09ede55b48") }}
with child as (
    select port_of_import_country_name as from_field
    from "trase_production"."main_brazil"."brazil_bol_2023_mdic_padded"
    where port_of_import_country_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