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

49 lines
1.3 KiB
YAML

version: 2
models:
- name: atlas__fact_maas
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_maas_id
description: "{{ doc('id') }}"
tests:
- not_null:
where: inserted_timestamp BETWEEN SYSDATE() - INTERVAL '7 days' AND SYSDATE() - INTERVAL '2 hours'
- unique:
where: inserted_timestamp BETWEEN SYSDATE() - INTERVAL '7 days' AND SYSDATE() - INTERVAL '2 hours'
- name: day
description: "{{ doc('active_day') }}"
tests:
- not_null
- unique
- name: maa
description: "{{ doc('maa')}}"
tests:
- not_null
- name: new_maas
description: "{{ doc('new_maas') }}"
tests:
- not_null
- name: returning_maas
description: "{{ doc('returning_maas') }}"
tests:
- not_null
- name: inserted_timestamp
description: "{{ doc('inserted_timestamp') }}"
- name: modified_timestamp
description: "{{ doc('modified_timestamp') }}"