Skip to content

DBT Test: Relationships Brazil Bol 2023 Silver Port Of Import Name Name Ref Postgres Ports

DBT test name: relationships_brazil_bol_2023_silver_port_of_import_name__name__ref_postgres_ports_

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_2023__f3bfa87a240a5e881e7d53c81355af2d") }}
with child as (
    select port_of_import_name as from_field
    from "trase_production"."main_brazil"."brazil_bol_2023_silver"
    where port_of_import_name is not null
),

parent as (
    select name as to_field
    from "trase_production"."main"."postgres_ports"
)

select
    from_field

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

where parent.to_field is null