added modified_timestamp as a dummy to enable recency tests. updated yml tags

This commit is contained in:
Mike Stepanovic 2025-04-07 12:57:42 -06:00
parent 301dcf560b
commit 3f7eb43967
3 changed files with 24 additions and 18 deletions

View File

@ -21,37 +21,37 @@ models:
description: The lowest block id in the test
tests:
- not_null:
tag: ['test_quality']
tags: ['test_quality']
- name: MAX_BLOCK
data_type: NUMBER
description: The highest block id in the test
tests:
- not_null:
tag: ['test_quality']
tags: ['test_quality']
- name: MIN_BLOCK_TIMESTAMP
data_type: TIMESTAMP_NTZ
description: The lowest block timestamp in the test
tests:
- not_null:
tag: ['test_quality']
tags: ['test_quality']
- name: MAX_BLOCK_TIMESTAMP
data_type: TIMESTAMP_NTZ
description: The highest block timestamp in the test
tests:
- not_null:
tag: ['test_quality']
tags: ['test_quality']
- name: BLOCKS_TESTED
data_type: NUMBER
description: Count of blocks in the test
tests:
- not_null:
tag: ['test_quality']
tags: ['test_quality']
- name: BLOCKS_IMPACTED_COUNT
data_type: NUMBER
description: Count of block gaps in the test
tests:
- not_null:
tag: ['test_quality']
tags: ['test_quality']
- name: BLOCKS_IMPACTED_ARRAY
data_type: ARRAY
description: Array of affected blocks
@ -60,9 +60,11 @@ models:
description: When the test was run
tests:
- not_null:
tag: ['test_quality']
tags: ['test_quality']
- unique:
tag: ['test_quality']
tags: ['test_quality']
- name: MODIFIED_TIMESTAMP
data_type: TIMESTAMP_NTZ
- name: silver_observability__transactions_completeness
description: Records of all blocks with missing transactions with a timestamp the test was run
@ -82,37 +84,37 @@ models:
description: The lowest block id in the test
tests:
- not_null:
tag: ['test_quality']
tags: ['test_quality']
- name: MAX_BLOCK
data_type: NUMBER
description: The highest block id in the test
tests:
- not_null:
tag: ['test_quality']
tags: ['test_quality']
- name: MIN_BLOCK_TIMESTAMP
data_type: TIMESTAMP_NTZ
description: The lowest block timestamp in the test
tests:
- not_null:
tag: ['test_quality']
tags: ['test_quality']
- name: MAX_BLOCK_TIMESTAMP
data_type: TIMESTAMP_NTZ
description: The highest block timestamp in the test
tests:
- not_null:
tag: ['test_quality']
tags: ['test_quality']
- name: BLOCKS_TESTED
data_type: NUMBER
description: Count of blocks in the test
tests:
- not_null:
tag: ['test_quality']
tags: ['test_quality']
- name: BLOCKS_IMPACTED_COUNT
data_type: NUMBER
description: Count of block gaps in the test
tests:
- not_null:
tag: ['test_quality']
tags: ['test_quality']
- name: BLOCKS_IMPACTED_ARRAY
data_type: ARRAY
description: Array of affected blocks
@ -121,6 +123,8 @@ models:
description: When the test was run
tests:
- not_null:
tag: ['test_quality']
tags: ['test_quality']
- unique:
tag: ['test_quality']
tags: ['test_quality']
- name: MODIFIED_TIMESTAMP
data_type: TIMESTAMP_NTZ

View File

@ -152,7 +152,8 @@ SELECT
ORDER BY
A.block_number
) AS blocks_impacted_array,
SYSDATE() AS test_timestamp
SYSDATE() AS test_timestamp,
SYSDATE() AS modified_timestamp
FROM
block_gen A
LEFT JOIN blocks b

View File

@ -134,7 +134,8 @@ SELECT
blocks_tested,
blocks_impacted_count,
blocks_impacted_array,
SYSDATE() AS test_timestamp
SYSDATE() AS test_timestamp,
SYSDATE() AS modified_timestamp
FROM
summary_stats
JOIN impacted_blocks