near-models/models/gold/atlas/atlas__fact_nft_monthly_txs.yml

42 lines
1.3 KiB
YAML
Raw Normal View History

2023-11-08 19:01:11 +00:00
version: 2
models:
2023-11-09 16:45:02 +00:00
- name: atlas__fact_nft_monthly_txs
2023-11-08 19:01:11 +00:00
description: |-
2025-01-06 18:49:49 +00:00
Deprecating Soon - these tables previously supported NEAR Atlas which is no longer live. These tables will be removed on Febreary 1, 2025.
Please cease using these tables.
2024-02-08 22:58:52 +00:00
tests:
- dbt_utils.recency:
datepart: days
field: inserted_timestamp
interval: 1
2023-11-08 19:01:11 +00:00
columns:
2023-11-09 16:45:02 +00:00
- name: FACT_NFT_MONTHLY_TXS_ID
2023-11-09 15:45:45 +00:00
description: "{{ doc('id')}}"
2024-02-08 22:58:52 +00:00
tests:
- unique:
2024-02-09 00:36:36 +00:00
where: inserted_timestamp BETWEEN SYSDATE() - INTERVAL '7 days' AND SYSDATE() - INTERVAL '2 hours'
2024-02-08 22:58:52 +00:00
- not_null:
2024-02-09 00:36:36 +00:00
where: inserted_timestamp BETWEEN SYSDATE() - INTERVAL '7 days' AND SYSDATE() - INTERVAL '2 hours'
2023-11-09 15:45:45 +00:00
2023-11-09 16:45:02 +00:00
- name: DAY
2023-11-08 19:01:11 +00:00
description: "{{ doc('date')}}"
2024-02-08 22:58:52 +00:00
tests:
- not_null
2023-11-08 19:01:11 +00:00
2023-11-09 16:45:02 +00:00
- name: TXNS
2023-11-08 19:01:11 +00:00
description: "{{ doc('tx_count')}}"
2024-02-08 22:58:52 +00:00
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- INTEGER
2023-11-09 16:45:02 +00:00
- name: INSERTED_TIMESTAMP
2023-11-08 19:36:09 +00:00
description: "{{ doc('inserted_timestamp')}}"
2023-11-09 16:45:02 +00:00
- name: MODIFIED_TIMESTAMP
2023-11-08 19:36:09 +00:00
description: "{{ doc('modified_timestamp')}}"