add createdat field (#385)

This commit is contained in:
Jack Forgash 2024-11-27 16:43:09 -05:00 committed by GitHub
parent 116ce2028d
commit 24fc3d4eb4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 0 deletions

View File

@ -50,6 +50,7 @@ flatten_batches AS (
_inserted_timestamp,
address AS from_address,
A.index AS batch_index,
A.value :createdAt :: TIMESTAMP_NTZ AS created_at,
A.value :batchId :: STRING AS batch_id,
A.value :status :: STRING AS batch_status,
A.value :transfers :: ARRAY AS batch_transfers
@ -63,6 +64,7 @@ flatten_transfers AS (
SELECT
partition_key,
request_date,
created_at,
from_address,
batch_index,
batch_id,
@ -78,6 +80,7 @@ flatten_transfers AS (
)
SELECT
request_date,
created_at,
batch_id,
batch_index,
transfer_index,

View File

@ -14,6 +14,8 @@ models:
- name: request_date
- name: created_at
- name: from_address
tests:
- not_null