mirror of
https://github.com/FlipsideCrypto/eclipse-models.git
synced 2026-02-06 09:26:43 +00:00
update unique test, removed col from events_inner (#62)
This commit is contained in:
parent
1a5de6cd3c
commit
285be4b1c2
@ -13,7 +13,7 @@ models:
|
||||
data_tests:
|
||||
- dbt_expectations.expect_column_to_exist
|
||||
- not_null: *recent_date_filter
|
||||
- unique
|
||||
- unique: *recent_date_filter
|
||||
- name: BLOCK_TIMESTAMP
|
||||
description: "{{ doc('block_timestamp') }}"
|
||||
data_tests:
|
||||
|
||||
@ -10,7 +10,7 @@ models:
|
||||
combination_of_columns:
|
||||
- TX_ID
|
||||
- INDEX
|
||||
where: block_timestamp::date > current_date - 30
|
||||
where: block_timestamp::date > current_date - 7
|
||||
columns:
|
||||
- name: BLOCK_TIMESTAMP
|
||||
description: "{{ doc('block_timestamp') }}"
|
||||
|
||||
@ -32,7 +32,6 @@ SELECT
|
||||
program_id,
|
||||
event_type,
|
||||
instruction,
|
||||
_inserted_timestamp,
|
||||
events_inner_id AS fact_events_inner_id,
|
||||
sysdate() AS inserted_timestamp,
|
||||
sysdate() AS modified_timestamp
|
||||
|
||||
@ -11,7 +11,7 @@ models:
|
||||
- TX_ID
|
||||
- INSTRUCTION_INDEX
|
||||
- INNER_INDEX
|
||||
where: block_timestamp::date > current_date - 30
|
||||
where: block_timestamp::date > current_date - 7
|
||||
columns:
|
||||
- name: BLOCK_TIMESTAMP
|
||||
description: "{{ doc('block_timestamp') }}"
|
||||
@ -67,11 +67,6 @@ models:
|
||||
data_tests:
|
||||
- dbt_expectations.expect_column_to_exist
|
||||
- not_null: *recent_date_filter
|
||||
- name: _INSERTED_TIMESTAMP
|
||||
description: "{{ doc('_inserted_timestamp') }}"
|
||||
data_tests:
|
||||
- dbt_expectations.expect_column_to_exist
|
||||
- not_null
|
||||
- name: FACT_EVENTS_INNER_ID
|
||||
description: '{{ doc("pk") }}'
|
||||
data_tests:
|
||||
|
||||
@ -29,7 +29,7 @@ models:
|
||||
data_tests:
|
||||
- dbt_expectations.expect_column_to_exist
|
||||
- not_null: *recent_date_filter
|
||||
- unique
|
||||
- unique: *recent_date_filter
|
||||
- name: INDEX
|
||||
description: "{{ doc('tx_index') }}"
|
||||
data_tests:
|
||||
|
||||
@ -11,7 +11,7 @@ models:
|
||||
- TX_ID
|
||||
- INDEX
|
||||
- INNER_INDEX
|
||||
where: block_timestamp::date > current_date - 30
|
||||
where: block_timestamp::date > current_date - 7
|
||||
columns:
|
||||
- name: BLOCK_TIMESTAMP
|
||||
description: "{{ doc('block_timestamp') }}"
|
||||
@ -83,7 +83,6 @@ models:
|
||||
description: '{{ doc("pk") }}'
|
||||
data_tests:
|
||||
- not_null: *recent_date_filter
|
||||
- unique
|
||||
- name: INSERTED_TIMESTAMP
|
||||
description: '{{ doc("inserted_timestamp") }}'
|
||||
data_tests:
|
||||
|
||||
@ -12,7 +12,7 @@ models:
|
||||
- INDEX
|
||||
- INNER_INDEX
|
||||
- MINT
|
||||
where: block_timestamp::date > current_date - 30
|
||||
where: block_timestamp::date > current_date - 7
|
||||
columns:
|
||||
- name: BLOCK_TIMESTAMP
|
||||
description: "{{ doc('block_timestamp') }}"
|
||||
@ -86,7 +86,6 @@ models:
|
||||
description: '{{ doc("pk") }}'
|
||||
data_tests:
|
||||
- not_null: *recent_date_filter
|
||||
- unique
|
||||
- name: INSERTED_TIMESTAMP
|
||||
description: '{{ doc("inserted_timestamp") }}'
|
||||
data_tests:
|
||||
|
||||
@ -12,7 +12,7 @@ models:
|
||||
- MINT
|
||||
- INDEX
|
||||
- INNER_INDEX
|
||||
where: block_timestamp::date > current_date - 30
|
||||
where: block_timestamp::date > current_date - 7
|
||||
columns:
|
||||
- name: BLOCK_TIMESTAMP
|
||||
description: "{{ doc('block_timestamp') }}"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user