DBT Test: Dbt Utils Accepted Range Brazil Soy V2 7 0 Supply Chain Co2 Gross Emissions Def Year 5y Amortised Exposure Tco2e 0
DBT test name: dbt_utils_accepted_range_brazil_soy_v2_7_0_supply_chain_co2_gross_emissions_def_year_5y_amortised_exposure_tco2e__0
DBT details
-
Kind:
generic(accepted_range) -
Column under test:
co2_gross_emissions_def_year_5y_amortised_exposure_tco2e -
Test file: trase/data_pipeline/models/brazil/soy/data_packages/brazil_soy_v2_7_0/_schema.yml
Description
No description
Details
{{ dbt_utils.test_accepted_range(**_dbt_generic_test_kwargs) }}{{ config(alias="dbt_utils_accepted_range_brazi_5f3a124b0f775138b106233d862ecf35") }}
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 co2_gross_emissions_def_year_5y_amortised_exposure_tco2e >= 0
)
select *
from validation_errors