DBT Test: Dbt Expectations Expect Column Value Lengths To Be Between Brazil Soy Silo Map V2 Csv State Abbreviation 2 2
DBT test name: dbt_expectations_expect_column_value_lengths_to_be_between_brazil_soy_silo_map_v2_csv_state_abbreviation__2__2
DBT details
-
Kind:
generic(expect_column_value_lengths_to_be_between) -
Column under test:
state_abbreviation -
Test file: trase/data_pipeline/models/brazil/logistics/silos/silo_map_v2/_schema.yml
Description
No description
Details
Models
Macros
test_expect_column_value_lengths_to_be_betweenget_where_subquery
{{ dbt_expectations.test_expect_column_value_lengths_to_be_between(**_dbt_generic_test_kwargs) }}{{ config(alias="dbt_expectations_expect_column_0bd9875d65973ef449c8ba92be04358c") }}
with grouped_expression as (
select
( 1=1 and length(
state_abbreviation
) >= 2 and length(
state_abbreviation
) <= 2
)
as expression
from "trase_production"."main_brazil"."brazil_soy_silo_map_v2_csv"
),
validation_errors as (
select
*
from
grouped_expression
where
not(expression = true)
)
select *
from validation_errors