Skip to content

DBT Test: Dbt Utils Relationships Where Wood Pulp Ind V3 2 0 2025 Post Embedding Quant Country Of Import Country Name Country Of Import Processed Domestically Ref Postgres Countries

DBT test name: dbt_utils_relationships_where_wood_pulp_ind_v3_2_0_2025_post_embedding_quant_COUNTRY_OF_IMPORT__country_name__country_of_import_PROCESSED_DOMESTICALLY___ref_postgres_countries_

DBT details


Description

No description


Details

Models

Macros

  • test_relationships_where
  • get_where_subquery
{{ dbt_utils.test_relationships_where(**_dbt_generic_test_kwargs) }}{{ config(alias="dbt_utils_relationships_where__962d303030055a2e6b5174b1dd06a3e2") }}
with left_table as (

  select
    COUNTRY_OF_IMPORT as id

  from "trase_production"."main"."wood_pulp_ind_v3_2_0_2025_post_embedding_quant"

  where COUNTRY_OF_IMPORT is not null
    and country_of_import <> 'PROCESSED DOMESTICALLY'

),

right_table as (

  select
    country_name as id

  from "trase_production"."main"."postgres_countries"

  where country_name is not null
    and 1=1

),

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