DBT Test: Dbt Expectations Expect Column Values To Match Regex Indonesia Palm Oil V1 2 5 For Ingestion Country Of First Import Trase Id A Z 2
DBT test name: dbt_expectations_expect_column_values_to_match_regex_indonesia_palm_oil_v1_2_5_for_ingestion_country_of_first_import_trase_id___A_Z_2_
DBT details
-
Kind:
generic(expect_column_values_to_match_regex) -
Column under test:
country_of_first_import_trase_id -
Test file: trase/data_pipeline/models/indonesia/palm_oil/sei_pcs/v1_2_5/_schema.yml
Description
No description
Details
Models
Macros
test_expect_column_values_to_match_regexget_where_subquery
{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias="dbt_expectations_expect_column_418782a1ccabc75232914aae47734504") }}
with grouped_expression as (
select
regexp_matches(country_of_first_import_trase_id, '^[A-Z]{2}$', '')
> 0
as expression
from "memory"."main"."indonesia_palm_oil_v1_2_5_for_ingestion"
),
validation_errors as (
select
*
from
grouped_expression
where
not(expression = true)
)
select *
from validation_errors