Skip to content

DBT Test: Accepted Values Indonesia Palm Oil V1 2 5 Product Type Palm Oil Refined Palm Oil

DBT test name: accepted_values_indonesia_palm_oil_v1_2_5_product_type__PALM_OIL__REFINED_PALM_OIL

DBT details


Description

No description


Details

Models

Macros

  • test_accepted_values
  • get_where_subquery
{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(alias="accepted_values_indonesia_palm_052d4403f24638528a5c60d6c2097bce") }}
with all_values as (

    select
        product_type as value_field,
        count(*) as n_records

    from "memory"."main"."indonesia_palm_oil_v1_2_5"
    group by product_type

)

select *
from all_values
where value_field not in (
    'PALM OIL','REFINED PALM OIL'
)