fix tests again

This commit is contained in:
mattromano 2026-01-12 13:09:33 -08:00
parent a65f044d1e
commit ffa2079bf6
7 changed files with 38 additions and 20 deletions

View File

@ -11,11 +11,13 @@ models:
- ADDRESS
- fsc_evm.balances_sequence_gaps:
column_name: TX_POSITION
where: BLOCK_TIMESTAMP < CURRENT_DATE - 1
partition_by:
- BLOCK_NUMBER
config:
where: BLOCK_TIMESTAMP < CURRENT_DATE - 1
- fsc_evm.balances_diffs_native:
where: BLOCK_TIMESTAMP < CURRENT_DATE - 1
config:
where: BLOCK_TIMESTAMP < CURRENT_DATE - 1
arguments:
test_model: test_gold__fact_traces_full
columns:

View File

@ -10,9 +10,10 @@ models:
- EVENT_INDEX
- fsc_evm.sequence_gaps:
column_name: EVENT_INDEX
where: BLOCK_TIMESTAMP < CURRENT_DATE - 1
partition_by:
- BLOCK_NUMBER
config:
where: BLOCK_TIMESTAMP < CURRENT_DATE - 1
- events_match_txs:
arguments:
transactions_model: ref('test_gold__fact_transactions_full')
@ -43,8 +44,9 @@ models:
arguments:
regex: 0[xX][0-9a-fA-F]+
- fsc_utils.tx_block_count:
severity: error
error_if: "!=0"
config:
severity: error
error_if: "!=0"
- name: TX_POSITION
tests:
- not_null

View File

@ -42,8 +42,9 @@ models:
arguments:
regex: 0[xX][0-9a-fA-F]+
- fsc_utils.tx_block_count:
severity: error
error_if: "!=0"
config:
severity: error
error_if: "!=0"
- name: TX_POSITION
tests:
- not_null

View File

@ -10,9 +10,10 @@ models:
- TRACE_INDEX
- fsc_evm.sequence_gaps:
column_name: TRACE_INDEX
where: BLOCK_TIMESTAMP < CURRENT_DATE - 1 AND TX_HASH IS NOT NULL
partition_by:
- TX_HASH
config:
where: BLOCK_TIMESTAMP < CURRENT_DATE - 1 AND TX_HASH IS NOT NULL
- txs_have_traces:
arguments:
transactions_model: ref('test_gold__fact_transactions_full')
@ -62,21 +63,25 @@ models:
- name: FROM_ADDRESS
tests:
- not_null:
where: TYPE <> 'SELFDESTRUCT'
config:
where: TYPE <> 'SELFDESTRUCT'
- dbt_expectations.expect_column_values_to_match_regex:
where: FROM_ADDRESS IS NOT NULL AND TRACE_ADDRESS <> 'ORIGIN'
config:
where: FROM_ADDRESS IS NOT NULL AND TRACE_ADDRESS <> 'ORIGIN'
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: TO_ADDRESS
tests:
- dbt_expectations.expect_column_values_to_match_regex:
where: TO_ADDRESS IS NOT NULL
config:
where: TO_ADDRESS IS NOT NULL
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: INPUT
tests:
- not_null:
where: TYPE <> 'SELFDESTRUCT'
config:
where: TYPE <> 'SELFDESTRUCT'
- name: TYPE
tests:
- not_null

View File

@ -10,9 +10,10 @@ models:
- TRACE_INDEX
- fsc_evm.sequence_gaps:
column_name: TRACE_INDEX
where: TX_HASH IS NOT NULL
partition_by:
- TX_HASH
config:
where: TX_HASH IS NOT NULL
- txs_have_traces:
arguments:
transactions_model: ref('test_gold__fact_transactions_recent')
@ -62,21 +63,25 @@ models:
- name: FROM_ADDRESS
tests:
- not_null:
where: TYPE <> 'SELFDESTRUCT'
config:
where: TYPE <> 'SELFDESTRUCT'
- dbt_expectations.expect_column_values_to_match_regex:
where: FROM_ADDRESS IS NOT NULL AND TRACE_ADDRESS <> 'ORIGIN'
config:
where: FROM_ADDRESS IS NOT NULL AND TRACE_ADDRESS <> 'ORIGIN'
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: TO_ADDRESS
tests:
- dbt_expectations.expect_column_values_to_match_regex:
where: TO_ADDRESS IS NOT NULL
config:
where: TO_ADDRESS IS NOT NULL
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: INPUT
tests:
- not_null:
where: TYPE <> 'SELFDESTRUCT'
config:
where: TYPE <> 'SELFDESTRUCT'
- name: TYPE
tests:
- not_null

View File

@ -9,9 +9,10 @@ models:
- TX_HASH
- fsc_evm.sequence_gaps:
column_name: TX_POSITION
where: BLOCK_TIMESTAMP < CURRENT_DATE - 1
partition_by:
- BLOCK_NUMBER
config:
where: BLOCK_TIMESTAMP < CURRENT_DATE - 1
- txs_match_blocks:
arguments:
blocks_model: ref('test_gold__fact_blocks_full')
@ -51,7 +52,8 @@ models:
- name: TO_ADDRESS
tests:
- dbt_expectations.expect_column_values_to_match_regex:
where: TO_ADDRESS IS NOT NULL
config:
where: TO_ADDRESS IS NOT NULL
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: ORIGIN_FUNCTION_SIGNATURE

View File

@ -50,7 +50,8 @@ models:
- name: TO_ADDRESS
tests:
- dbt_expectations.expect_column_values_to_match_regex:
where: TO_ADDRESS IS NOT NULL
config:
where: TO_ADDRESS IS NOT NULL
arguments:
regex: 0[xX][0-9a-fA-F]+
- name: ORIGIN_FUNCTION_SIGNATURE