DBT Test: Dbt Utils Accepted Range Brazil Bol 2023 Gold Fob 700000000 0 01
DBT test name: dbt_utils_accepted_range_brazil_bol_2023_gold_fob__700000000__0_01
DBT details
-
Kind:
generic(accepted_range) -
Column under test:
fob -
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(where="padded = false",alias="dbt_utils_accepted_range_brazi_c95849b482575682733ba602cd3e9d01") }}
with meet_condition as(
select *
from (select * from "trase_production"."main_brazil"."brazil_bol_2023_gold" where padded = false) dbt_subquery
),
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 fob >= 0.01
-- records with a value <= max_value are permitted. The `not` flips this to find records that don't meet the rule.
or not fob <= 700000000
)
select *
from validation_errors