DBT Test: Dbt Expectations Expect Column Values To Not Match Regex Brazil Beef Exporters Enriched Exporter Clean Name Mataboi Year 2020
DBT test name: dbt_expectations_expect_column_values_to_not_match_regex_brazil_beef_exporters_enriched_EXPORTER_CLEAN_NAME__MATABOI__YEAR_2020
DBT details
-
Kind:
generic(expect_column_values_to_not_match_regex) -
Column under test:
EXPORTER_CLEAN_NAME -
Test file: trase/data_pipeline/models/brazil/beef/sei_pcs/v2_2_1/_schema_sei_pcs_v2_2_1.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_75a948e7170338f6fb5c6ad11df99f48") }}
with grouped_expression as (
select
regexp_matches(EXPORTER_CLEAN_NAME, 'MATABOI', '')
= 0
as expression
from "trase_production"."main_brazil"."brazil_beef_exporters_enriched"
where
YEAR >= 2020
),
validation_errors as (
select
*
from
grouped_expression
where
not(expression = true)
)
select *
from validation_errors