Skip to content

DBT Test: Dbt Expectations Expect Column Values To Not Match Regex Brazil Beef Exporters Enriched Exporter Clean Name Prima Foods Year 2020

DBT test name: dbt_expectations_expect_column_values_to_not_match_regex_brazil_beef_exporters_enriched_EXPORTER_CLEAN_NAME__PRIMA_FOODS__YEAR_2020

DBT details


Description

No description


Details

Models

Macros

  • test_expect_column_values_to_not_match_regex
  • get_where_subquery
{{ dbt_expectations.test_expect_column_values_to_not_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias="dbt_expectations_expect_column_aee1b14a14195dd800ce56a5766185ce") }}
    with grouped_expression as (
    select








regexp_matches(EXPORTER_CLEAN_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