DBT Test: Dbt Expectations Expect Column Values To Not Match Regex Indonesia Palm Oil Sei Pcs V1 2 5 Seipcs 2018 Country I S Na Nan None Unknown
DBT test name: dbt_expectations_expect_column_values_to_not_match_regex_indonesia_palm_oil_sei_pcs_v1_2_5_seipcs_2018_country___i_s_NA_NAN_NONE_UNKNOWN_
DBT details
-
Kind:
generic(expect_column_values_to_not_match_regex) -
Column under test:
country -
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_not_match_regexget_where_subquery
{{ dbt_expectations.test_expect_column_values_to_not_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias="dbt_expectations_expect_column_e95a4951d9baf54a563ac15fbd6d3610") }}
with grouped_expression as (
select
regexp_matches(country, '(?i)^(\s*|NA|NAN|NONE|UNKNOWN)$', '')
= 0
as expression
from "memory"."main"."indonesia_palm_oil_sei_pcs_v1_2_5_seipcs_2018"
),
validation_errors as (
select
*
from
grouped_expression
where
not(expression = true)
)
select *
from validation_errors