Skip to content

DBT Test: Dbt Expectations Expect Column Values To Match Regex Comtrade Exports Partner Iso A Z0 9 A Z0 9 A Z0 9

DBT test name: dbt_expectations_expect_column_values_to_match_regex_comtrade_exports_partner_iso___A_Z0_9__A_Z0_9_A_Z0_9_

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_660c27a2c877582fdb56bad8ddcbacc5") }}
    with grouped_expression as (
    select








regexp_matches(partner_iso, '^[A-Z0-9_][A-Z0-9][A-Z0-9]?$', '')


 > 0
 as expression


    from "trase_production"."main"."comtrade_exports"


),
validation_errors as (

    select
        *
    from
        grouped_expression
    where
        not(expression = true)

)

select *
from validation_errors