mirror of
https://github.com/FlipsideCrypto/flow-models.git
synced 2026-02-06 14:22:06 +00:00
* flow testnet v2 * set batch sizes * add QN node_url to sl testnet model * upd node_url in testnet rt models * add gha workflows for testnet * testnet gold models * upd tag on gold * upd tests * upd tests and set min to 280mm * upd test - rm null --------- Co-authored-by: shah <info@shahnewazkhan.ca>
90 lines
2.5 KiB
YAML
90 lines
2.5 KiB
YAML
version: 2
|
|
|
|
models:
|
|
- name: testnet__fact_blocks
|
|
description: "{{ doc('core__fact_blocks') }}"
|
|
tests:
|
|
- sequence_gaps:
|
|
column_name: block_height
|
|
where: BLOCK_TIMESTAMP::DATE < CURRENT_DATE
|
|
severity: warn
|
|
|
|
columns:
|
|
- name: BLOCK_HEIGHT
|
|
description: "{{ doc('block_height') }}"
|
|
tests:
|
|
- not_null
|
|
- unique
|
|
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
|
column_type_list:
|
|
- NUMBER
|
|
- FLOAT
|
|
|
|
- name: BLOCK_TIMESTAMP
|
|
description: "{{ doc('block_timestamp') }}"
|
|
tests:
|
|
- not_null
|
|
- dbt_expectations.expect_row_values_to_have_recent_data:
|
|
datepart: day
|
|
interval: 1
|
|
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
|
column_type_list:
|
|
- TIMESTAMP_NTZ
|
|
|
|
- name: NETWORK
|
|
description: "{{ doc('network') }}"
|
|
tests:
|
|
- not_null
|
|
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
|
column_type_list:
|
|
- STRING
|
|
- VARCHAR
|
|
|
|
- name: NETWORK_VERSION
|
|
description: "{{ doc('network_version') }}"
|
|
|
|
- name: CHAIN_ID
|
|
description: "{{ doc('chain_id') }}"
|
|
tests:
|
|
- not_null
|
|
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
|
column_type_list:
|
|
- STRING
|
|
- VARCHAR
|
|
|
|
- name: TX_COUNT
|
|
description: "{{ doc('tx_count') }}"
|
|
tests:
|
|
- not_null:
|
|
where: inserted_timestamp <= SYSDATE() - interval '12 hours'
|
|
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
|
column_type_list:
|
|
- NUMBER
|
|
|
|
- name: ID
|
|
description: "{{ doc('id') }}"
|
|
tests:
|
|
- not_null
|
|
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
|
column_type_list:
|
|
- STRING
|
|
- VARCHAR
|
|
|
|
- name: PARENT_ID
|
|
description: "{{ doc('parent_id') }}"
|
|
tests:
|
|
- not_null
|
|
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
|
column_type_list:
|
|
- STRING
|
|
- VARCHAR
|
|
|
|
- name: FACT_BLOCKS_ID
|
|
description: "{{ doc('pk_id') }}"
|
|
|
|
- name: INSERTED_TIMESTAMP
|
|
description: "{{ doc('inserted_timestamp') }}"
|
|
|
|
- name: MODIFIED_TIMESTAMP
|
|
description: "{{ doc('modified_timestamp') }}"
|