Skip to content

Commit

Permalink
restore back to main
Browse files Browse the repository at this point in the history
  • Loading branch information
mattromano committed Dec 19, 2024
1 parent 1c81a77 commit b53d304
Show file tree
Hide file tree
Showing 11 changed files with 77 additions and 101 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,20 @@ models:
columns:
- name: SUBACCOUNT
tests:
- not_null:
timestamp_column: MODIFIED_TIMESTAMP
- not_null
- name: TRADER
tests:
- not_null:
timestamp_column: MODIFIED_TIMESTAMP
- not_null
- name: FIRST_TRADE_TIMESTAMP
tests:
- not_null:
timestamp_column: MODIFIED_TIMESTAMP
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
- TIMESTAMP_NTZ
- name: LAST_TRADE_TIMESTAMP
tests:
- not_null:
timestamp_column: MODIFIED_TIMESTAMP
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_LTZ
Expand Down Expand Up @@ -106,9 +102,8 @@ models:
- FLOAT
- name: MODIFIED_TIMESTAMP
tests:
- not_null:
timestamp_column: MODIFIED_TIMESTAMP
- fsc_evm_expect_row_values_to_have_recent_data:
- 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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: 2
models:
- name: silver__vertex_collateral
tests:
- fsc_evm_unique_combination_of_columns:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- fact_event_logs_id
columns:
Expand All @@ -16,7 +16,7 @@ models:
- name: BLOCK_TIMESTAMP
tests:
- not_null
- fsc_evm_expect_row_values_to_have_recent_data:
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: day
interval: 3
- dbt_expectations.expect_column_values_to_be_in_type_list:
Expand All @@ -26,12 +26,12 @@ models:
- name: TX_HASH
tests:
- not_null
- fsc_evm_expect_column_values_to_match_regex:
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
- name: CONTRACT_ADDRESS
tests:
- not_null
- fsc_evm_expect_column_values_to_match_regex:
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
- name: EVENT_NAME
tests:
Expand All @@ -48,11 +48,11 @@ models:
- name: ORIGIN_FROM_ADDRESS
tests:
- not_null
- fsc_evm_expect_column_values_to_match_regex:
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
- name: ORIGIN_TO_ADDRESS
tests:
- fsc_evm_expect_column_values_to_match_regex:
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
- not_null
- name: MODIFICATION_TYPE
Expand All @@ -61,12 +61,12 @@ models:
- name: TRADER
tests:
- not_null
- fsc_evm_expect_column_values_to_match_regex:
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
- name: SUBACCOUNT
tests:
- not_null
- fsc_evm_expect_column_values_to_match_regex:
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
- name: PRODUCT_ID
tests:
Expand All @@ -77,7 +77,7 @@ models:
- name: TOKEN_ADDRESS
tests:
- not_null
- fsc_evm_expect_column_values_to_match_regex:
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
- name: AMOUNT_UNADJ
tests:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: 2
models:
- name: silver__vertex_dim_products
tests:
- fsc_evm_unique_combination_of_columns:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- PRODUCT_ID
columns:
Expand All @@ -23,7 +23,7 @@ models:
- name: TX_HASH
tests:
- not_null
- fsc_evm_expect_column_values_to_match_regex:
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
- name: PRODUCT_TYPE
tests:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: 2
models:
- name: silver__vertex_edge_trades
tests:
- fsc_evm_unique_combination_of_columns:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- fact_event_logs_id
columns:
Expand All @@ -16,7 +16,7 @@ models:
- name: BLOCK_TIMESTAMP
tests:
- not_null
- fsc_evm_expect_row_values_to_have_recent_data:
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: day
interval: 14
- dbt_expectations.expect_column_values_to_be_in_type_list:
Expand All @@ -26,7 +26,7 @@ models:
- name: TX_HASH
tests:
- not_null
- fsc_evm_expect_column_values_to_match_regex:
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
- name: EDGE_EVENT_INDEX
tests:
Expand All @@ -37,7 +37,7 @@ models:
- name: TRADER
tests:
- not_null
- fsc_evm_expect_column_values_to_match_regex:
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
- name: SYMBOL
tests:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: 2
models:
- name: silver__vertex_liquidations
tests:
- fsc_evm_unique_combination_of_columns:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- fact_event_logs_id
columns:
Expand All @@ -16,7 +16,7 @@ models:
- name: BLOCK_TIMESTAMP
tests:
- not_null
- fsc_evm_expect_row_values_to_have_recent_data:
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: day
interval: 14
- dbt_expectations.expect_column_values_to_be_in_type_list:
Expand All @@ -26,15 +26,15 @@ models:
- name: TX_HASH
tests:
- not_null
- fsc_evm_expect_column_values_to_match_regex:
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
- name: EVENT_INDEX
tests:
- not_null
- name: CONTRACT_ADDRESS
tests:
- not_null
- fsc_evm_expect_column_values_to_match_regex:
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
- name: EVENT_NAME
tests:
Expand All @@ -46,17 +46,17 @@ models:
- name: DIGEST
tests:
- not_null
- fsc_evm_expect_column_values_to_match_regex:
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
- name: TRADER
tests:
- not_null
- fsc_evm_expect_column_values_to_match_regex:
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
- name: SUBACCOUNT
tests:
- not_null
- fsc_evm_expect_column_values_to_match_regex:
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
- name: PRODUCT_ID
tests:
Expand Down Expand Up @@ -97,10 +97,10 @@ models:
- name: ORIGIN_FROM_ADDRESS
tests:
- not_null
- fsc_evm_expect_column_values_to_match_regex:
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+
- name: ORIGIN_TO_ADDRESS
tests:
- fsc_evm_expect_column_values_to_match_regex:
- dbt_expectations.expect_column_values_to_match_regex:
regex: 0[xX][0-9a-fA-F]+

Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,14 @@ models:
columns:
- name: TICKER_ID
tests:
- not_null:
timestamp_column: HOUR
- not_null
- name: PRODUCT_ID
tests:
- not_null:
timestamp_column: HOUR
- not_null
- name: HOUR
tests:
- not_null:
timestamp_column: HOUR
- fsc_evm_expect_row_values_to_have_recent_data:
- 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:
Expand All @@ -26,8 +23,7 @@ models:
- TIMESTAMP_NTZ
- name: ORDERBOOK_SIDE
tests:
- not_null:
timestamp_column: HOUR
- not_null
- name: PRICE
tests:
- dbt_expectations.expect_column_values_to_be_in_type_list:
Expand Down Expand Up @@ -70,3 +66,4 @@ models:
column_type_list:
- NUMBER
- FLOAT

Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,16 @@ version: 2
models:
- name: silver__vertex_market_stats
tests:
- fsc_evm_unique_combination_of_columns:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- HOUR
- TICKER_ID
timestamp_column: HOUR
- vertex_missing_products
columns:
- name: HOUR
tests:
- not_null:
timestamp_column: HOUR
- fsc_evm_expect_row_values_to_have_recent_data:
- 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:
Expand All @@ -22,16 +20,11 @@ models:
- TIMESTAMP_NTZ
- name: TICKER_ID
tests:
- not_null:
timestamp_column: HOUR
- not_null
- name: SYMBOL
tests:
- not_null:
timestamp_column: HOUR
- not_null
- name: PRODUCT_ID
tests:
- not_null:
timestamp_column: HOUR
- not_null
- name: DISTINCT_SEQUENCE
tests:
- dbt_expectations.expect_column_values_to_be_in_type_list:
Expand Down Expand Up @@ -94,8 +87,7 @@ models:
- FLOAT
- name: CONTRACT_PRICE_CURRENCY
tests:
- not_null:
timestamp_column: HOUR
- not_null
- name: FUNDING_RATE
tests:
- dbt_expectations.expect_column_values_to_be_in_type_list:
Expand All @@ -122,8 +114,7 @@ models:
- FLOAT
- name: NEXT_FUNDING_RATE_TIMESTAMP
tests:
- not_null:
timestamp_column: HOUR
- not_null
- name: OPEN_INTEREST
tests:
- dbt_expectations.expect_column_values_to_be_in_type_list:
Expand All @@ -138,12 +129,10 @@ models:
- FLOAT
- name: PRODUCT_TYPE
tests:
- not_null:
timestamp_column: HOUR
- not_null
- name: QUOTE_CURRENCY
tests:
- not_null:
timestamp_column: HOUR
- not_null
- name: QUOTE_VOLUME
tests:
- dbt_expectations.expect_column_values_to_be_in_type_list:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,15 @@ version: 2
models:
- name: silver__vertex_money_markets
tests:
- fsc_evm_unique_combination_of_columns:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- HOUR
- TICKER_ID
timestamp_column: HOUR
columns:
- name: HOUR
tests:
- not_null:
timestamp_column: HOUR
- fsc_evm_expect_row_values_to_have_recent_data:
- 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:
Expand All @@ -21,16 +19,11 @@ models:
- TIMESTAMP_NTZ
- name: TICKER_ID
tests:
- not_null:
timestamp_column: HOUR
- not_null
- name: SYMBOL
tests:
- not_null:
timestamp_column: HOUR
- not_null
- name: PRODUCT_ID
tests:
- not_null:
timestamp_column: HOUR
- not_null
- name: DEPOSIT_APR
tests:
- dbt_expectations.expect_column_values_to_be_in_type_list:
Expand Down
Loading

0 comments on commit b53d304

Please sign in to comment.