DBT Test: All Columns Not Null Seipcs Brazil Soy V2 6 1 2022 With Exporter
DBT test name: all_columns_not_null_seipcs_brazil_soy_v2_6_1_2022_with_exporter_
DBT details
-
Kind:
generic(all_columns_not_null) -
Tags:
foo
Description
No description
Details
{{ test_all_columns_not_null(**_dbt_generic_test_kwargs) }}{{ config(tags=['foo'],alias="all_columns_not_null_seipcs_br_76240cf552960aeb55ea147d72989593") }}
select
'"YEAR"' as column_name,
count(*) as c
from (
select '"YEAR"'
from "trase_production"."main_brazil_soy"."seipcs_brazil_soy_v2_6_1_2022_with_exporter"
where '"YEAR"' is null
) as subquery_1
having count(*) > 0
union all
select
'"PRODUCT"' as column_name,
count(*) as c
from (
select '"PRODUCT"'
from "trase_production"."main_brazil_soy"."seipcs_brazil_soy_v2_6_1_2022_with_exporter"
where '"PRODUCT"' is null
) as subquery_2
having count(*) > 0
union all
select
'"VOLUME_RAW"' as column_name,
count(*) as c
from (
select '"VOLUME_RAW"'
from "trase_production"."main_brazil_soy"."seipcs_brazil_soy_v2_6_1_2022_with_exporter"
where '"VOLUME_RAW"' is null
) as subquery_3
having count(*) > 0
union all
select
'"VOLUME_PRODUCT"' as column_name,
count(*) as c
from (
select '"VOLUME_PRODUCT"'
from "trase_production"."main_brazil_soy"."seipcs_brazil_soy_v2_6_1_2022_with_exporter"
where '"VOLUME_PRODUCT"' is null
) as subquery_4
having count(*) > 0
union all
select
'"LVL6_TRASE_ID_PROD"' as column_name,
count(*) as c
from (
select '"LVL6_TRASE_ID_PROD"'
from "trase_production"."main_brazil_soy"."seipcs_brazil_soy_v2_6_1_2022_with_exporter"
where '"LVL6_TRASE_ID_PROD"' is null
) as subquery_5
having count(*) > 0
union all
select
'"LVL6_NAME_PROD"' as column_name,
count(*) as c
from (
select '"LVL6_NAME_PROD"'
from "trase_production"."main_brazil_soy"."seipcs_brazil_soy_v2_6_1_2022_with_exporter"
where '"LVL6_NAME_PROD"' is null
) as subquery_6
having count(*) > 0
union all
select
'"LVL6_TRASE_ID_LH"' as column_name,
count(*) as c
from (
select '"LVL6_TRASE_ID_LH"'
from "trase_production"."main_brazil_soy"."seipcs_brazil_soy_v2_6_1_2022_with_exporter"
where '"LVL6_TRASE_ID_LH"' is null
) as subquery_7
having count(*) > 0
union all
select
'"LVL6_NAME_LH"' as column_name,
count(*) as c
from (
select '"LVL6_NAME_LH"'
from "trase_production"."main_brazil_soy"."seipcs_brazil_soy_v2_6_1_2022_with_exporter"
where '"LVL6_NAME_LH"' is null
) as subquery_8
having count(*) > 0
union all
select
'"PORT_OF_EXPORT"' as column_name,
count(*) as c
from (
select '"PORT_OF_EXPORT"'
from "trase_production"."main_brazil_soy"."seipcs_brazil_soy_v2_6_1_2022_with_exporter"
where '"PORT_OF_EXPORT"' is null
) as subquery_9
having count(*) > 0
union all
select
'"VESSEL"' as column_name,
count(*) as c
from (
select '"VESSEL"'
from "trase_production"."main_brazil_soy"."seipcs_brazil_soy_v2_6_1_2022_with_exporter"
where '"VESSEL"' is null
) as subquery_10
having count(*) > 0
union all
select
'"VESSEL_ID"' as column_name,
count(*) as c
from (
select '"VESSEL_ID"'
from "trase_production"."main_brazil_soy"."seipcs_brazil_soy_v2_6_1_2022_with_exporter"
where '"VESSEL_ID"' is null
) as subquery_11
having count(*) > 0
union all
select
'"IMPORTER_SYNACOMEX"' as column_name,
count(*) as c
from (
select '"IMPORTER_SYNACOMEX"'
from "trase_production"."main_brazil_soy"."seipcs_brazil_soy_v2_6_1_2022_with_exporter"
where '"IMPORTER_SYNACOMEX"' is null
) as subquery_12
having count(*) > 0
union all
select
'"COUNTRY_OF_FIRST_IMPORT"' as column_name,
count(*) as c
from (
select '"COUNTRY_OF_FIRST_IMPORT"'
from "trase_production"."main_brazil_soy"."seipcs_brazil_soy_v2_6_1_2022_with_exporter"
where '"COUNTRY_OF_FIRST_IMPORT"' is null
) as subquery_13
having count(*) > 0
union all
select
'"COUNTRY_GROUP"' as column_name,
count(*) as c
from (
select '"COUNTRY_GROUP"'
from "trase_production"."main_brazil_soy"."seipcs_brazil_soy_v2_6_1_2022_with_exporter"
where '"COUNTRY_GROUP"' is null
) as subquery_14
having count(*) > 0
union all
select
'"COUNTRY_SYNACOMEX"' as column_name,
count(*) as c
from (
select '"COUNTRY_SYNACOMEX"'
from "trase_production"."main_brazil_soy"."seipcs_brazil_soy_v2_6_1_2022_with_exporter"
where '"COUNTRY_SYNACOMEX"' is null
) as subquery_15
having count(*) > 0
union all
select
'"FOB"' as column_name,
count(*) as c
from (
select '"FOB"'
from "trase_production"."main_brazil_soy"."seipcs_brazil_soy_v2_6_1_2022_with_exporter"
where '"FOB"' is null
) as subquery_16
having count(*) > 0
union all
select
'"BRANCH"' as column_name,
count(*) as c
from (
select '"BRANCH"'
from "trase_production"."main_brazil_soy"."seipcs_brazil_soy_v2_6_1_2022_with_exporter"
where '"BRANCH"' is null
) as subquery_17
having count(*) > 0
union all
select
'"CNPJ"' as column_name,
count(*) as c
from (
select '"CNPJ"'
from "trase_production"."main_brazil_soy"."seipcs_brazil_soy_v2_6_1_2022_with_exporter"
where '"CNPJ"' is null
) as subquery_18
having count(*) > 0
union all
select
'"EXPORTER_TYPE"' as column_name,
count(*) as c
from (
select '"EXPORTER_TYPE"'
from "trase_production"."main_brazil_soy"."seipcs_brazil_soy_v2_6_1_2022_with_exporter"
where '"EXPORTER_TYPE"' is null
) as subquery_19
having count(*) > 0
union all
select
'"EXPORTER_TRASE_ID"' as column_name,
count(*) as c
from (
select '"EXPORTER_TRASE_ID"'
from "trase_production"."main_brazil_soy"."seipcs_brazil_soy_v2_6_1_2022_with_exporter"
where '"EXPORTER_TRASE_ID"' is null
) as subquery_20
having count(*) > 0
union all
select
'"MATCHED"' as column_name,
count(*) as c
from (
select '"MATCHED"'
from "trase_production"."main_brazil_soy"."seipcs_brazil_soy_v2_6_1_2022_with_exporter"
where '"MATCHED"' is null
) as subquery_21
having count(*) > 0
union all
select
'"EXPORTER_LABEL"' as column_name,
count(*) as c
from (
select '"EXPORTER_LABEL"'
from "trase_production"."main_brazil_soy"."seipcs_brazil_soy_v2_6_1_2022_with_exporter"
where '"EXPORTER_LABEL"' is null
) as subquery_22
having count(*) > 0
union all
select
'"IMPORTER_LABEL"' as column_name,
count(*) as c
from (
select '"IMPORTER_LABEL"'
from "trase_production"."main_brazil_soy"."seipcs_brazil_soy_v2_6_1_2022_with_exporter"
where '"IMPORTER_LABEL"' is null
) as subquery_23
having count(*) > 0
union all
select
'"BIOME_TRASE_ID"' as column_name,
count(*) as c
from (
select '"BIOME_TRASE_ID"'
from "trase_production"."main_brazil_soy"."seipcs_brazil_soy_v2_6_1_2022_with_exporter"
where '"BIOME_TRASE_ID"' is null
) as subquery_24
having count(*) > 0
union all
select
'"BIOME"' as column_name,
count(*) as c
from (
select '"BIOME"'
from "trase_production"."main_brazil_soy"."seipcs_brazil_soy_v2_6_1_2022_with_exporter"
where '"BIOME"' is null
) as subquery_25
having count(*) > 0
union all
select
'"ECONOMIC_BLOC"' as column_name,
count(*) as c
from (
select '"ECONOMIC_BLOC"'
from "trase_production"."main_brazil_soy"."seipcs_brazil_soy_v2_6_1_2022_with_exporter"
where '"ECONOMIC_BLOC"' is null
) as subquery_26
having count(*) > 0
union all
select
'"LVL3_TRASE_ID_PROD"' as column_name,
count(*) as c
from (
select '"LVL3_TRASE_ID_PROD"'
from "trase_production"."main_brazil_soy"."seipcs_brazil_soy_v2_6_1_2022_with_exporter"
where '"LVL3_TRASE_ID_PROD"' is null
) as subquery_27
having count(*) > 0
union all
select
'"EXPORTER_ID"' as column_name,
count(*) as c
from (
select '"EXPORTER_ID"'
from "trase_production"."main_brazil_soy"."seipcs_brazil_soy_v2_6_1_2022_with_exporter"
where '"EXPORTER_ID"' is null
) as subquery_28
having count(*) > 0
union all
select
'"EXPORTER_GROUP_ID"' as column_name,
count(*) as c
from (
select '"EXPORTER_GROUP_ID"'
from "trase_production"."main_brazil_soy"."seipcs_brazil_soy_v2_6_1_2022_with_exporter"
where '"EXPORTER_GROUP_ID"' is null
) as subquery_29
having count(*) > 0
union all
select
'"EXPORTER"' as column_name,
count(*) as c
from (
select '"EXPORTER"'
from "trase_production"."main_brazil_soy"."seipcs_brazil_soy_v2_6_1_2022_with_exporter"
where '"EXPORTER"' is null
) as subquery_30
having count(*) > 0
union all
select
'"EXPORTER_GROUP"' as column_name,
count(*) as c
from (
select '"EXPORTER_GROUP"'
from "trase_production"."main_brazil_soy"."seipcs_brazil_soy_v2_6_1_2022_with_exporter"
where '"EXPORTER_GROUP"' is null
) as subquery_31
having count(*) > 0
union all
select
'"IMPORTER_ID"' as column_name,
count(*) as c
from (
select '"IMPORTER_ID"'
from "trase_production"."main_brazil_soy"."seipcs_brazil_soy_v2_6_1_2022_with_exporter"
where '"IMPORTER_ID"' is null
) as subquery_32
having count(*) > 0
union all
select
'"IMPORTER_GROUP_ID"' as column_name,
count(*) as c
from (
select '"IMPORTER_GROUP_ID"'
from "trase_production"."main_brazil_soy"."seipcs_brazil_soy_v2_6_1_2022_with_exporter"
where '"IMPORTER_GROUP_ID"' is null
) as subquery_33
having count(*) > 0
union all
select
'"IMPORTER"' as column_name,
count(*) as c
from (
select '"IMPORTER"'
from "trase_production"."main_brazil_soy"."seipcs_brazil_soy_v2_6_1_2022_with_exporter"
where '"IMPORTER"' is null
) as subquery_34
having count(*) > 0
union all
select
'"IMPORTER_GROUP"' as column_name,
count(*) as c
from (
select '"IMPORTER_GROUP"'
from "trase_production"."main_brazil_soy"."seipcs_brazil_soy_v2_6_1_2022_with_exporter"
where '"IMPORTER_GROUP"' is null
) as subquery_35
having count(*) > 0