Skip to content

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


Description

No description


Details

Models

Macros

  • test_expect_column_values_to_match_regex
  • get_where_subquery
{{ 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