solana-models/models/silver/_observability/silver_observability__blocks_tx_count.yml
desmond-hui 7892ce4ad2
An 4000/tx count checks (#382)
* model to get current tx count by block in snowflake

* compare actual vs expected tx count when available

* use existing logic for older blocks or we dont have expected counts
2023-11-08 07:46:13 -08:00

27 lines
979 B
YAML

version: 2
models:
- name: silver_observability__blocks_tx_count
description: Records of all block transaction counts. This is an intermediate table used for transaction completeness testing
columns:
- name: BLOCK_ID
description: The lowest block id in the test
tests:
- not_null
- unique
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- name: TRANSACTION_COUNT
description: The lowest block id in the test
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- name: _INSERTED_TIMESTAMP
description: The lowest block timestamp in the test
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_NTZ