Skip to content

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

DBT test name: accepted_values_indonesia_palm_oil_v1_2_5_for_ingestion_product_type__CRUDE_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_82ae2bd6cc25d20d18fb5f44ca5469ed") }}
with all_values as (

    select
        product_type as value_field,
        count(*) as n_records

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

)

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