Skip to content

Commit

Permalink
feat(not-null-test): rm old not null tests
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurfg committed Mar 4, 2024
1 parent c8c061f commit fb1fa90
Show file tree
Hide file tree
Showing 15 changed files with 0 additions and 3,417 deletions.
9 changes: 0 additions & 9 deletions models/br_bcb_agencia/schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,17 @@ models:
description: Mês
- name: sigla_uf
description: Sigla da Unidade da Federação
tests:
- dbt_utils.not_null_proportion:
at_least: 0.05
- name: id_municipio
description: ID Município - IBGE 7 Dígitos
tests:
- relationships:
to: ref('br_bd_diretorios_brasil__municipio')
field: id_municipio
- dbt_utils.not_null_proportion:
at_least: 0.05
- name: data_inicio
description: Data de criação da agência
- name: cnpj
description: Cadastro Nacional de Pessoa Júridica (CNPJ)
tests:
- dbt_utils.not_null_proportion:
at_least: 0.05
- relationships:
to: ref('br_bd_diretorios_brasil__empresa')
field: cnpj
Expand All @@ -53,8 +46,6 @@ models:
- relationships:
to: ref('br_bd_diretorios_brasil__cep')
field: cep.cep
- dbt_utils.not_null_proportion:
at_least: 0.05
- name: endereco
description: endereço da agência
- name: complemento
Expand Down
20 changes: 0 additions & 20 deletions models/br_bcb_estban/schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,16 @@ models:
description: Mês
- name: sigla_uf
description: Sigla da Unidade da Federação
tests:
- dbt_utils.not_null_proportion:
at_least: 0.05
- name: id_municipio
description: ID Município - IBGE 7 Dígitos
tests:
- relationships:
to: ref('br_bd_diretorios_brasil__municipio')
field: id_municipio
- dbt_utils.not_null_proportion:
at_least: 0.05
- name: cnpj_basico
description: Cadastro Nacional de Pessoa Jurídica (CNPJ) básico (8 primeiros
dígitos)
tests:
- dbt_utils.not_null_proportion:
at_least: 0.05
- relationships:
to: ref('br_bd_diretorios_brasil__empresa')
field: cnpj_basico
Expand All @@ -49,9 +42,6 @@ models:
description: Quantidade de agências processadas da IF no município
- name: id_verbete
description: Código do verbete
tests:
- dbt_utils.not_null_proportion:
at_least: 0.05
- name: valor
description: Valores
- name: br_bcb_estban__agencia
Expand All @@ -74,17 +64,12 @@ models:
description: Mês
- name: sigla_uf
description: Sigla da Unidade da Federação
tests:
- dbt_utils.not_null_proportion:
at_least: 0.05
- name: id_municipio
description: ID Município - IBGE 7 Dígitos
tests:
- relationships:
to: ref('br_bd_diretorios_brasil__municipio')
field: id_municipio
- dbt_utils.not_null_proportion:
at_least: 0.05
- name: cnpj_basico
description: Cadastro Nacional de Pessoa Jurídica (CNPJ) básico (8 primeiros
dígitos)
Expand All @@ -93,15 +78,10 @@ models:
- name: cnpj_agencia
description: CNPJ da agência bancária
tests:
- dbt_utils.not_null_proportion:
at_least: 0.05
- relationships:
to: ref('br_bd_diretorios_brasil__empresa')
field: cnpj
- name: id_verbete
description: Código do verbete
tests:
- dbt_utils.not_null_proportion:
at_least: 0.05
- name: valor
description: Valores
102 changes: 0 additions & 102 deletions models/br_bd_metadados/schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,94 +32,40 @@ models:
columns:
- name: flow_group_id
description: Flow group identifier
tests:
- dbt_utils.not_null_proportion:
at_least: 0.05
- name: name
description: Flow's name
tests:
- dbt_utils.not_null_proportion:
at_least: 0.05
- name: created
description: Timestamp indicating when the flow was initially created
tests:
- dbt_utils.not_null_proportion:
at_least: 0.05
- name: latest_version
description: Version number of the latest iteration of the flow
tests:
- dbt_utils.not_null_proportion:
at_least: 0.05
- name: last_update
description: Timestamp of the last update made to the flow
tests:
- dbt_utils.not_null_proportion:
at_least: 0.05
- name: schedule_type
description: Type of scheduling employed for the flow (e.g. CronClock, IntervalClock)
tests:
- dbt_utils.not_null_proportion:
at_least: 0.05
- name: schedule_cron
description: Cron expression defining the flow's scheduling pattern
tests:
- dbt_utils.not_null_proportion:
at_least: 0.05
- name: schedule_start_date
description: Date when the scheduled execution of the flow starts
tests:
- dbt_utils.not_null_proportion:
at_least: 0.05
- name: schedule_filters
description: Filters applied to refine the scheduled execution criteria
tests:
- dbt_utils.not_null_proportion:
at_least: 0.05
- name: schedule_adjustments
description: Adjustments or configurations for the flow's scheduling
tests:
- dbt_utils.not_null_proportion:
at_least: 0.05
- name: schedule_labels
description: Labels in the flow's scheduling
tests:
- dbt_utils.not_null_proportion:
at_least: 0.05
- name: schedule_all_parameters
description: All parameters in the schedule
tests:
- dbt_utils.not_null_proportion:
at_least: 0.05
- name: schedule_parameters_dataset_id
description: Dataset used in scheduling parameters.
tests:
- dbt_utils.not_null_proportion:
at_least: 0.05
- name: schedule_parameters_table_id
description: Table used in scheduling parameters
tests:
- dbt_utils.not_null_proportion:
at_least: 0.05
- name: schedule_parameters_dbt_alias
description: Indicates if the model uses alias in DBT
tests:
- dbt_utils.not_null_proportion:
at_least: 0.05
- name: schedule_parameters_materialization_mode
description: Mode defining where data is materialized
tests:
- dbt_utils.not_null_proportion:
at_least: 0.05
- name: schedule_parameters_materialize_after_dump
description: Indicates if materialization occurs after data dump
tests:
- dbt_utils.not_null_proportion:
at_least: 0.05
- name: schedule_parameters_update_metadata
description: Indicates if metadata is updated
tests:
- dbt_utils.not_null_proportion:
at_least: 0.05
- name: br_bd_metadados__prefect_flow_runs
description: Insert `prefect_flow_runs` table description here
tests:
Expand All @@ -128,84 +74,36 @@ models:
columns:
- name: id
description: Unique identifier for the flow run
tests:
- dbt_utils.not_null_proportion:
at_least: 0.05
- name: flow_group_id
description: Unique identifier for the flow group
tests:
- dbt_utils.not_null_proportion:
at_least: 0.05
- name: name
description: Name associated with the specific flow run
tests:
- dbt_utils.not_null_proportion:
at_least: 0.05
- name: labels
description: Labels (determines the project the data will be materialized)
tests:
- dbt_utils.not_null_proportion:
at_least: 0.05
- name: flow_project_name
description: Name of the project linked to this flow run
tests:
- dbt_utils.not_null_proportion:
at_least: 0.05
- name: flow_name
description: Name of the flow linked to this flow run
tests:
- dbt_utils.not_null_proportion:
at_least: 0.05
- name: flow_archived
description: Boolean indicating whether the flow run is archived or active
tests:
- dbt_utils.not_null_proportion:
at_least: 0.05
- name: dataset_id
description: BigQuery dataset id relevant to this flow run
tests:
- dbt_utils.not_null_proportion:
at_least: 0.05
- name: table_id
description: BigQuery table id relevant to this flow run
tests:
- dbt_utils.not_null_proportion:
at_least: 0.05
- name: start_time
description: Date and time when the flow run was initiated
tests:
- dbt_utils.not_null_proportion:
at_least: 0.05
- name: end_time
description: Date and time when the flow run was completed or ended
tests:
- dbt_utils.not_null_proportion:
at_least: 0.05
- name: state
description: Current state of the flow run
tests:
- dbt_utils.not_null_proportion:
at_least: 0.05
- name: state_message
description: Additional message or information related to the state/status
of the flow run
tests:
- dbt_utils.not_null_proportion:
at_least: 0.05
- name: task_runs
description: Information or details regarding individual task runs within
this flow run
tests:
- dbt_utils.not_null_proportion:
at_least: 0.05
- name: skipped_upload_to_gcs
description: Boolean indicating whether the upload to GCS (Google Cloud Storage)
was skipped or not for this flow run.
tests:
- dbt_utils.not_null_proportion:
at_least: 0.05
- name: error_logs
description: Error log records
tests:
- dbt_utils.not_null_proportion:
at_least: 0.05
Loading

0 comments on commit fb1fa90

Please sign in to comment.