DBT Test: Dbt Utils Accepted Range Brazil Soy Silo Map V2 Csv Municipality Ibge Code 5300108 1100015
DBT test name: dbt_utils_accepted_range_brazil_soy_silo_map_v2_csv_municipality_ibge_code__5300108__1100015
DBT details
-
Kind:
generic(accepted_range) -
Column under test:
municipality_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_02b87c71c6442c51f613d7580944dca8") }}
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 municipality_ibge_code >= 1100015
-- records with a value <= max_value are permitted. The `not` flips this to find records that don't meet the rule.
or not municipality_ibge_code <= 5300108
)
select *
from validation_errors