update unique test, removed col from events_inner (#62)

This commit is contained in:
tarikceric 2025-07-16 11:44:33 -07:00 committed by GitHub
parent 1a5de6cd3c
commit 285be4b1c2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 7 additions and 15 deletions

View File

@ -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:

View File

@ -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') }}"

View File

@ -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

View File

@ -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:

View File

@ -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:

View File

@ -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:

View File

@ -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:

View File

@ -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') }}"