DBT Test: Dbt Utils Accepted Range Brazil Soy Silo Map V2 Csv State Ibge Code 53 11
DBT test name: dbt_utils_accepted_range_brazil_soy_silo_map_v2_csv_state_ibge_code__53__11
DBT details
-
Kind:
generic(accepted_range) -
Column under test:
state_ibge_code -
Test file: trase/data_pipeline/models/brazil/logistics/silos/silo_map_v2/_schema.yml
Description
No description
Details
{{ dbt_utils.test_accepted_range(**_dbt_generic_test_kwargs) }}{{ config(alias="dbt_utils_accepted_range_brazi_e60fb0be29b9e43fb2ee564707b14193") }}
with meet_condition as(
select *
from "trase_production"."main_brazil"."brazil_soy_silo_map_v2_csv"
),
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 state_ibge_code >= 11
-- records with a value <= max_value are permitted. The `not` flips this to find records that don't meet the rule.
or not state_ibge_code <= 53
)
select *
from validation_errors