renames, test updates bug fixes

This commit is contained in:
Eric Laurello 2025-08-05 12:22:53 -04:00
parent 191aa9c7bc
commit 604f8faa7e
10 changed files with 26 additions and 40 deletions

View File

@ -22,7 +22,10 @@
event_index,
event_resource,
event_data :amount :: bigint AS amount,
event_data :store :: STRING AS store_address
COALESCE(
event_data :store :: STRING,
account_address
) AS store_address
FROM
{{ ref('silver__events') }}
WHERE

View File

@ -1,3 +1,7 @@
-- Description:
-- This view exposes transfer event data from the silver.transfers table, including block and transaction metadata,
-- transfer details, and audit fields. It is intended for downstream consumption and simplifies access to transfer events.
{{ config(
materialized = 'view'
) }}

View File

@ -1,12 +1,11 @@
{{ config(
materialized = 'view',
tags = ['full_test'],
enabled = false
tags = ['full_test']
) }}
SELECT
*
FROM
{{ ref(
'silver__transfers'
'silver__transfers_fungible'
) }}

View File

@ -1,6 +1,6 @@
version: 2
models:
- name: test_silver__transfers_full
- name: test_silver__transfers_fungible_full
tests:
- dbt_utils.unique_combination_of_columns:
@ -55,13 +55,6 @@ models:
column_type_list:
- NUMBER
- FLOAT
- name: CREATION_NUMBER
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- FLOAT
- name: TRANSFER_EVENT
tests:
- not_null
@ -69,7 +62,7 @@ models:
column_type_list:
- STRING
- VARCHAR
- name: ACCOUNT_ADDRESS
- name: OWNER_ADDRESS
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
@ -83,14 +76,14 @@ models:
column_type_list:
- NUMBER
- FLOAT
- name: TOKEN_ADDRESS
- name: METADATA_ADDRESS
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- STRING
- VARCHAR
- name: TRANSFERS_ID
- name: TRANSFERS_FUNGIBLE_ID
tests:
- not_null
- name: INSERTED_TIMESTAMP
@ -99,10 +92,6 @@ models:
- name: MODIFIED_TIMESTAMP
tests:
- not_null
- name: _INSERTED_TIMESTAMP
tests:
- name: not_null_test_silver__transfers_INSERTED_TIMESTAMP_
test_name: not_null
- name: _INVOCATION_ID
tests:
- name: not_null_test_silver__transfers_INVOCATION_ID

View File

@ -1,7 +1,6 @@
{{ config (
materialized = 'view',
tags = ['recent_test'],
enabled = false
tags = ['recent_test']
) }}
WITH last_3_days AS (
@ -18,7 +17,7 @@ WITH last_3_days AS (
SELECT
*
FROM
{{ ref('silver__transfers') }}
{{ ref('silver__transfers_fungible') }}
WHERE
block_number >= (
SELECT

View File

@ -1,6 +1,6 @@
version: 2
models:
- name: test_silver__transfers_recent
- name: test_silver__transfers_fungible_recent
columns:
@ -25,18 +25,15 @@ models:
- name: EVENT_INDEX
tests:
- not_null
- name: CREATION_NUMBER
tests:
- not_null
- name: TRANSFER_EVENT
tests:
- not_null
- name: ACCOUNT_ADDRESS
- name: OWNER_ADDRESS
tests:
- not_null
- name: AMOUNT
tests:
- not_null
- name: TOKEN_ADDRESS
- name: METADATA_ADDRESS
tests:
- not_null

View File

@ -1,12 +1,11 @@
{{ config(
materialized = 'view',
tags = ['full_test'],
enabled = false
tags = ['full_test']
) }}
SELECT
*
FROM
{{ ref(
'silver__transfers_native'
'silver__transfers_native_fungible'
) }}

View File

@ -1,6 +1,6 @@
version: 2
models:
- name: test_silver__transfers_native_full
- name: test_silver__transfers_native_fungible_full
tests:
- dbt_utils.unique_combination_of_columns:
@ -85,10 +85,7 @@ models:
- name: MODIFIED_TIMESTAMP
tests:
- not_null
- name: _INSERTED_TIMESTAMP
tests:
- name: not_null_test_silver__transfers_native_INSERTED_TIMESTAMP_
test_name: not_null
- name: _INVOCATION_ID
tests:
- name: not_null_test_silver__transfers_native_INVOCATION_ID

View File

@ -1,7 +1,6 @@
{{ config (
materialized = 'view',
tags = ['recent_test'],
enabled = false
tags = ['recent_test']
) }}
WITH last_3_days AS (
@ -18,7 +17,7 @@ WITH last_3_days AS (
SELECT
*
FROM
{{ ref('silver__transfers_native') }}
{{ ref('silver__transfers_native_fungible') }}
WHERE
block_number >= (
SELECT

View File

@ -1,6 +1,6 @@
version: 2
models:
- name: test_silver__transfers_native_recent
- name: test_silver__transfers_native_fungible_recent
columns: