external-models/models/defillama/silver/silver__defillama_perp_metrics.yml
Matt Romano 763b17a853
Some checks failed
docs_update / docs_update (push) Has been cancelled
docs_update / notify-failure (push) Has been cancelled
dbt_run_scheduled_weekly / run_dbt_jobs (push) Has been cancelled
dbt_run_scheduled_weekly / notify-failure (push) Has been cancelled
drop-not-needed-perp-tests (#141)
2025-09-26 10:25:26 -06:00

100 lines
2.7 KiB
YAML

version: 2
models:
- name: silver__defillama_perp_metrics
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- protocol_id
- timestamp
columns:
- name: timestamp
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- DATE
- name: protocol_id
tests:
- not_null
- name: category
tests:
- not_null
- name: name
tests:
- not_null
- name: display_name
tests:
- not_null
- name: module
tests:
- not_null
- name: logo
tests:
- not_null
- name: chains
tests:
- not_null
- name: protocol_type
tests:
- not_null
- name: methodology_url
tests:
- not_null
- name: methodology
tests:
- not_null
- name: protocol_slug
tests:
- not_null
- name: total_24h
tests:
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- FLOAT
- name: total_48h_to_24h
tests:
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- FLOAT
- name: total_7d
tests:
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- FLOAT
- name: total_30d
tests:
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- FLOAT
- name: total_all_time
tests:
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- FLOAT
- name: change_1d
tests:
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- FLOAT
- name: total_data_chart_breakdown
tests:
- not_null
- name: defillama_perp_metrics_id
tests:
- not_null
- name: _inserted_timestamp
tests:
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_NTZ
- name: inserted_timestamp
tests:
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_NTZ
- name: modified_timestamp
tests:
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- TIMESTAMP_NTZ