DBT Test: Dbt Utils Relationships Where Brazil Bol 2025 Silver Exporter Municipality Name Name Ref Postgres Regions Without Geometry Level 6 And Country Brazil
DBT test name: dbt_utils_relationships_where_brazil_bol_2025_silver_exporter_municipality_name__name__ref_postgres_regions_without_geometry___level_6_AND_country_BRAZIL_
DBT details
-
Kind:
generic(relationships_where) -
Column under test:
exporter_municipality_name -
Test file: trase/data_pipeline/models/brazil/trade/bol/_schema_brazil_bol.yml
Description
No description
Details
Models
Macros
test_relationships_whereget_where_subquery
{{ dbt_utils.test_relationships_where(**_dbt_generic_test_kwargs) }}{{ config(severity="warn",alias="dbt_utils_relationships_where__014a0f1a9b0cee3393b153f390c11c0e") }}
with left_table as (
select
exporter_municipality_name as id
from "memory"."main"."brazil_bol_2025_silver"
where exporter_municipality_name is not null
and 1=1
),
right_table as (
select
name as id
from "memory"."main"."postgres_regions_without_geometry"
where name is not null
and level = 6 AND country = 'BRAZIL'
),
exceptions as (
select
left_table.id,
right_table.id as right_id
from left_table
left join right_table
on left_table.id = right_table.id
where right_table.id is null
)
select * from exceptions