Skip to content

DBT Test: Relationships Brazil Bol 2024 Silver Exporter Trase Id Trase Id Ref Postgres Traders

DBT test name: relationships_brazil_bol_2024_silver_exporter_trase_id__trase_id__ref_postgres_traders_

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_2024__a1cf3cff37dbba3ae551102388c1cf6d") }}
with child as (
    select exporter_trase_id as from_field
    from "memory"."main"."brazil_bol_2024_silver"
    where exporter_trase_id is not null
),

parent as (
    select trase_id as to_field
    from "memory"."main"."postgres_traders"
)

select
    from_field

from child
left join parent
    on child.from_field = parent.to_field

where parent.to_field is null