DBT Test: Dbt Expectations Expect Column Values To Match Regex Comtrade Exports Commodity Code 0 9 6
DBT test name: dbt_expectations_expect_column_values_to_match_regex_comtrade_exports_commodity_code___0_9_6_
DBT details
-
Kind:
generic(expect_column_values_to_match_regex) -
Column under test:
commodity_code -
Test file: trase/data_pipeline/models/world/trade/statistical_data/comtrade/originals/_schema.yml
Description
No description
Details
{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias="dbt_expectations_expect_column_bc340ada1d71ec60435bbf74eab70a53") }}
with grouped_expression as (
select
regexp_matches(commodity_code, '^[0-9]{6}$', '')
> 0
as expression
from "trase_production"."main"."comtrade_exports"
),
validation_errors as (
select
*
from
grouped_expression
where
not(expression = true)
)
select *
from validation_errors