DBT Test: Dbt Expectations Expect Column Values To Not Match Regex Indonesia Palm Oil Sei Pcs V1 2 5 Seipcs 2023 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_2023_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_e00422e96352c087607da29b47a87ab1") }}
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_2023"
),
validation_errors as (
select
*
from
grouped_expression
where
not(expression = true)
)
select *
from validation_errors