Skip to content

DBT Test: Relationships Brazil Bol 2025 Silver Country Of Destination Trase Id Country Trase Id Ref Postgres Countries

DBT test name: relationships_brazil_bol_2025_silver_country_of_destination_trase_id__country_trase_id__ref_postgres_countries_

DBT details


Description

No description


Details

Models

Macros

  • test_relationships
  • get_where_subquery
{{ test_relationships(**_dbt_generic_test_kwargs) }}{{ config(severity="warn",alias="relationships_brazil_bol_2025__0938afd1c651ec7cfc54533c76651c01") }}
with child as (
    select country_of_destination_trase_id as from_field
    from "memory"."main"."brazil_bol_2025_silver"
    where country_of_destination_trase_id is not null
),

parent as (
    select country_trase_id 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