DBT Test: Relationships Brazil Bol 2023 Gold Importer Node Id Trader Node Id Ref Postgres Traders
DBT test name: relationships_brazil_bol_2023_gold_importer_node_id__trader_node_id__ref_postgres_traders_
DBT details
-
Kind:
generic(relationships) -
Column under test:
importer_node_id -
Test file: trase/data_pipeline/models/brazil/trade/bol/_schema_brazil_bol.yml
Description
No description
Details
{{ test_relationships(**_dbt_generic_test_kwargs) }}{{ config(alias="relationships_brazil_bol_2023__5c5f0ca79a4beba5240858d219657da6") }}
with child as (
select importer_node_id as from_field
from "trase_production"."main_brazil"."brazil_bol_2023_gold"
where importer_node_id is not null
),
parent as (
select trader_node_id as to_field
from "trase_production"."main"."postgres_traders"
)
select
from_field
from child
left join parent
on child.from_field = parent.to_field
where parent.to_field is null