osmosis-models/models/silver/silver__validator_metadata.yml
eric-laurello d82b1b6082
AN-1195 changes from table review feedback (#10)
* updates

* name correction and uk update
2022-05-05 11:28:59 -04:00

50 lines
1.4 KiB
YAML

version: 2
models:
- name: silver__validator_metadata
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- CREATOR
- ADDRESS
- BLOCKCHAIN
columns:
- name: ADDRESS
description: "{{ doc('address') }}"
tests:
- not_null
- name: BLOCKCHAIN
description: "{{ doc('blockchain') }}"
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_set:
value_set: ['osmosis']
- name: CREATOR
description: "{{ doc('creator') }}"
tests:
- not_null
- name: LABEL_TYPE
description: "{{ doc('label_type') }}"
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_set:
value_set: ['operator']
- name: LABEL_SUBTYPE
description: "{{ doc('label_subtype') }}"
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_set:
value_set: ['validator']
- name: LABEL
description: "{{ doc('label') }}"
tests:
- not_null
- name: PROJECT_NAME
description: "{{ doc('project_name') }}"
tests:
- not_null
tests:
- not_null
- name: RAW_METADATA
description: "{{ doc('raw_metadata') }}"
tests:
- not_null