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

45 lines
1.3 KiB
YAML
Raw Normal View History

2023-11-09 00:56:10 +00:00
version: 2
models:
- name: atlas__fact_accounts_created
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-09 00:56:10 +00:00
columns:
2023-11-10 17:25:32 +00:00
- name: FACT_ACCOUNTS_CREATED_ID
2023-11-09 18:47:44 +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 18:47:44 +00:00
2023-11-10 17:27:37 +00:00
- name: DAY
2023-11-09 00:56:10 +00:00
description: "{{ doc('date')}}"
2024-02-08 22:58:52 +00:00
tests:
- not_null
2023-11-09 00:56:10 +00:00
2023-11-10 17:27:37 +00:00
- name: WALLETS_CREATED
2023-11-09 18:47:44 +00:00
description: "{{ doc('wallets_created')}}"
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 00:56:10 +00:00
2023-11-10 17:27:37 +00:00
- name: INSERTED_TIMESTAMP
2023-11-09 00:56:10 +00:00
description: "{{doc('inserted_timestamp')}}"
2023-11-10 17:27:37 +00:00
- name: MODIFIED_TIMESTAMP
2023-11-09 00:56:10 +00:00
description: "{{doc('modified_timestamp')}}"
2023-11-10 17:27:37 +00:00
- name: INVOCATION_ID
2023-11-09 00:56:10 +00:00
description: "{{doc('invocation_id')}}"