DBT Test: Dbt Expectations Expect Column Values To Not Match Regex Indonesia Palm Oil V1 2 5 Country Of First Import I S Na Nan None Unknown
DBT test name: dbt_expectations_expect_column_values_to_not_match_regex_indonesia_palm_oil_v1_2_5_country_of_first_import___i_s_NA_NAN_NONE_UNKNOWN_
DBT details
-
Kind:
generic(expect_column_values_to_not_match_regex) -
Column under test:
country_of_first_import -
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_8586cdf69c172227df2c4fa284b14b96") }}
with grouped_expression as (
select
regexp_matches(country_of_first_import, '(?i)^(\s*|NA|NAN|NONE|UNKNOWN)$', '')
= 0
as expression
from "memory"."main"."indonesia_palm_oil_v1_2_5"
),
validation_errors as (
select
*
from
grouped_expression
where
not(expression = true)
)
select *
from validation_errors