osmosis-models/models/silver/silver__blocks.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

45 lines
1.3 KiB
YAML

version: 2
models:
- name: silver__blocks
description: Records of all blocks that have occurred on Osmosis, dating back to the genesis block.
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- CHAIN_ID
- BLOCK_ID
columns:
- name: BLOCK_ID
description: "{{ doc('block_id') }}"
tests:
- not_null
- name: BLOCK_TIMESTAMP
description: "{{ doc('block_timestamp') }}"
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: day
interval: 1
- name: CHAIN_ID
description: "{{ doc('chain_id') }}"
tests:
- not_null
- name: TX_COUNT
description: "{{ doc('tx_count') }}"
tests:
- not_null
- name: PROPOSER_ADDRESS
description: "{{ doc('proposer_address') }}"
tests:
- not_null
- name: VALIDATOR_HASH
description: "{{ doc('validator_hash') }}"
tests:
- not_null
- name: _INGESTED_AT
description: "{{ doc('ingested_at') }}"
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_NTZ