add recency tests (#583)

This commit is contained in:
tarikceric 2024-06-17 09:49:44 -07:00 committed by GitHub
parent d5d5dfdea0
commit fdfdbe4937
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 25 additions and 6 deletions

View File

@ -19,8 +19,11 @@ models:
- name: end_slot
description: "Final slot of the epoch"
- name: _inserted_timestamp
description: "The inserted timestamp"
description: "{{ doc('_inserted_timestamp') }}"
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: day
interval: 2

View File

@ -39,6 +39,9 @@ models:
- name: stake_pubkey
description: "Address of stake account"
- name: _inserted_timestamp
description: "The inserted timestamp"
description: "{{ doc('_inserted_timestamp') }}"
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 12

View File

@ -78,7 +78,10 @@ models:
description: "validator.app score for Vote distance"
- name: www_url
description: "url for the validator"
- name: _INSERTED_TIMESTAMP
- name: _inserted_timestamp
description: "{{ doc('_inserted_timestamp') }}"
tests:
- not_null
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 12

View File

@ -65,3 +65,10 @@ models:
description: "Public key for the vote account"
tests:
- not_null
- name: _inserted_timestamp
description: "{{ doc('_inserted_timestamp') }}"
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: hour
interval: 12

View File

@ -44,8 +44,11 @@ models:
tests:
- not_null
- name: _inserted_timestamp
description: "The inserted timestamp"
description: "{{ doc('_inserted_timestamp') }}"
tests:
- not_null
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: day
interval: 2