DBT Test: Dbt Expectations Expect Column Values To Not Match Regex Brazil Beef Exporters Enriched Exporter Group Name Prima Foods Year 2020
DBT test name: dbt_expectations_expect_column_values_to_not_match_regex_brazil_beef_exporters_enriched_EXPORTER_GROUP_NAME__PRIMA_FOODS__YEAR_2020
DBT details
-
Kind:
generic(expect_column_values_to_not_match_regex) -
Column under test:
EXPORTER_GROUP_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_e74c6054bfc41efba364abe3765c680c") }}
with grouped_expression as (
select
regexp_matches(EXPORTER_GROUP_NAME, 'PRIMA FOODS', '')
= 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