Skip to content

DBT Test: Dbt Utils Accepted Range Sei Pcs Brazil Soy By Year Tmp 1000 Volume Raw 0

DBT test name: dbt_utils_accepted_range_sei_pcs_brazil_soy_by_year_tmp_1000_VOLUME_RAW__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_sei_p_8cc4f2e6dd2004452931d9e0040191a9") }}
with meet_condition as(
  select *
  from "memory"."main"."sei_pcs_brazil_soy_by_year_tmp_1000"
),

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 VOLUME_RAW >= 0
)

select *
from validation_errors