mirror of
https://github.com/FlipsideCrypto/near-models.git
synced 2026-02-06 13:41:54 +00:00
Upd v2 models
This commit is contained in:
parent
d4eda72950
commit
618daaba6c
@ -7,7 +7,7 @@
|
||||
unique_key = "block_hash",
|
||||
cluster_by = ['modified_timestamp::DATE','partition_key'],
|
||||
post_hook = "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(block_hash)",
|
||||
tags = ['scheduled_core']
|
||||
tags = ['scheduled_core', 'core_v2']
|
||||
) }}
|
||||
|
||||
WITH bronze_blocks AS (
|
||||
@ -39,8 +39,8 @@ WHERE
|
||||
SELECT
|
||||
block_id,
|
||||
block_hash,
|
||||
block_timestamp_epoch
|
||||
TO_TIMESTAMP_NTZ(block_timestamp_epoch, 3) AS block_timestamp,
|
||||
block_timestamp_epoch,
|
||||
TO_TIMESTAMP_NTZ(block_timestamp_epoch, 9) AS block_timestamp,
|
||||
partition_key,
|
||||
block_json,
|
||||
_inserted_timestamp,
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
unique_key = "chunk_hash",
|
||||
cluster_by = ['modified_timestamp::DATE','partition_key'],
|
||||
post_hook = "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(chunk_hash)",
|
||||
tags = ['scheduled_core']
|
||||
tags = ['scheduled_core', 'core_v2']
|
||||
) }}
|
||||
|
||||
WITH bronze_chunks AS (
|
||||
@ -40,7 +40,7 @@ WHERE
|
||||
SELECT
|
||||
block_id,
|
||||
block_timestamp_epoch,
|
||||
TO_TIMESTAMP_NTZ(block_timestamp_epoch, 3) AS block_timestamp,
|
||||
TO_TIMESTAMP_NTZ(block_timestamp_epoch, 9) AS block_timestamp,
|
||||
shard_id,
|
||||
chunk_hash,
|
||||
partition_key,
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
unique_key = "tx_hash",
|
||||
cluster_by = ['modified_timestamp::DATE','partition_key'],
|
||||
post_hook = "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(tx_hash)",
|
||||
tags = ['scheduled_core']
|
||||
tags = ['scheduled_core', 'core_v2']
|
||||
) }}
|
||||
|
||||
WITH bronze_transactions AS (
|
||||
@ -40,7 +40,7 @@ WHERE
|
||||
SELECT
|
||||
block_id,
|
||||
block_timestamp_epoch,
|
||||
TO_TIMESTAMP_NTZ(block_timestamp_epoch, 3) AS block_timestamp,
|
||||
TO_TIMESTAMP_NTZ(block_timestamp_epoch, 9) AS block_timestamp,
|
||||
tx_hash,
|
||||
signer_id,
|
||||
partition_key,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user