DBT Test: Dbt Utils Accepted Range Brazil Bol 2025 Silver Net Weight Tonnes 150000000 0 0001
DBT test name: dbt_utils_accepted_range_brazil_bol_2025_silver_net_weight_tonnes__150000000__0_0001
DBT details
-
Kind:
generic(accepted_range) -
Column under test:
net_weight_tonnes -
Test file: trase/data_pipeline/models/brazil/trade/bol/_schema_brazil_bol.yml
Description
No description
Details
{{ dbt_utils.test_accepted_range(**_dbt_generic_test_kwargs) }}{{ config(alias="dbt_utils_accepted_range_brazi_cde0cf4fb5636a78de9ea364e6eb3522") }}
with meet_condition as(
select *
from "memory"."main"."brazil_bol_2025_silver"
),
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 net_weight_tonnes >= 0.0001
-- records with a value <= max_value are permitted. The `not` flips this to find records that don't meet the rule.
or not net_weight_tonnes <= 150000000
)
select *
from validation_errors