near-models/models/gold/atlas/atlas__fact_accounts_created.yml
2025-01-06 11:49:49 -07:00

45 lines
1.3 KiB
YAML

version: 2
models:
- name: atlas__fact_accounts_created
description: |-
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.
tests:
- dbt_utils.recency:
datepart: days
field: inserted_timestamp
interval: 1
columns:
- name: FACT_ACCOUNTS_CREATED_ID
description: "{ { doc('id')}}"
tests:
- unique:
where: inserted_timestamp BETWEEN SYSDATE() - INTERVAL '7 days' AND SYSDATE() - INTERVAL '2 hours'
- not_null:
where: inserted_timestamp BETWEEN SYSDATE() - INTERVAL '7 days' AND SYSDATE() - INTERVAL '2 hours'
- name: DAY
description: "{{ doc('date')}}"
tests:
- not_null
- name: WALLETS_CREATED
description: "{{ doc('wallets_created')}}"
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- INTEGER
- name: INSERTED_TIMESTAMP
description: "{{doc('inserted_timestamp')}}"
- name: MODIFIED_TIMESTAMP
description: "{{doc('modified_timestamp')}}"
- name: INVOCATION_ID
description: "{{doc('invocation_id')}}"