mirror of
https://github.com/FlipsideCrypto/stellar-models.git
synced 2026-02-06 14:26:54 +00:00
68 lines
2.4 KiB
YAML
68 lines
2.4 KiB
YAML
version: 2
|
|
models:
|
|
- name: silver_observability__ledgers_xref_completeness
|
|
description: Records of all blocks ledger differences between hubble and rpc
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- TEST_TIMESTAMP
|
|
columns:
|
|
- name: MIN_SEQUENCE
|
|
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: MAX_SEQUENCE
|
|
description: The highest block id in the test
|
|
tests:
|
|
- not_null
|
|
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
|
column_type_list:
|
|
- NUMBER
|
|
- name: MIN_BLOCK_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
|
|
- name: MAX_BLOCK_TIMESTAMP
|
|
description: The highest block timestamp in the test
|
|
tests:
|
|
- not_null
|
|
- dbt_expectations.expect_row_values_to_have_recent_data:
|
|
datepart: day
|
|
interval: 2
|
|
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
|
column_type_list:
|
|
- TIMESTAMP_NTZ
|
|
- name: LEDGERS_TESTED
|
|
description: Count of blocks in the test
|
|
tests:
|
|
- not_null
|
|
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
|
column_type_list:
|
|
- NUMBER
|
|
- name: LEDGERS_IMPACTED_COUNT
|
|
description: Count of block gaps in the test
|
|
tests:
|
|
- not_null
|
|
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
|
column_type_list:
|
|
- NUMBER
|
|
- name: LEDGERS_IMPACTED_ARRAY
|
|
description: Array of affected blocks
|
|
tests:
|
|
- not_null
|
|
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
|
column_type_list:
|
|
- ARRAY
|
|
- name: TEST_TIMESTAMP
|
|
description: When the test was run
|
|
tests:
|
|
- not_null
|
|
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
|
column_type_list:
|
|
- TIMESTAMP_NTZ |