Skip to content

DBT Test: Dbt Utils Accepted Range Brazil Soy V2 7 0 Supply Chain Land Use 0

DBT test name: dbt_utils_accepted_range_brazil_soy_v2_7_0_supply_chain_land_use__0

DBT details


Description

No description


Details

Models

Macros

  • test_accepted_range
  • get_where_subquery
{{ dbt_utils.test_accepted_range(**_dbt_generic_test_kwargs) }}{{ config(alias="dbt_utils_accepted_range_brazi_168550e21c4207a9ec9baee6954d6f89") }}
with meet_condition as(
  select *
  from "memory"."main"."brazil_soy_v2_7_0_supply_chain"
),

validation_errors as (
  select *
  from meet_condition
  where
    -- never true, defaults to an empty result set. Exists to ensure any combo of the `or` clauses below succeeds
    1 = 2
    -- records with a value >= min_value are permitted. The `not` flips this to find records that don't meet the rule.
    or not land_use >= 0
)

select *
from validation_errors