mirror of
https://github.com/FlipsideCrypto/aurora-models.git
synced 2026-02-06 11:01:45 +00:00
fixes
This commit is contained in:
parent
73acbdbfe2
commit
58aa593828
@ -2,7 +2,7 @@
|
||||
{{ config (
|
||||
materialized = "incremental",
|
||||
incremental_strategy = 'delete+insert',
|
||||
unique_key = "block_number",
|
||||
unique_key = "traces_id",
|
||||
cluster_by = "block_timestamp::date, _inserted_timestamp::date",
|
||||
tags = ['core']
|
||||
) }}
|
||||
@ -407,6 +407,4 @@ SELECT
|
||||
SYSDATE() AS modified_timestamp,
|
||||
'{{ invocation_id }}' AS _invocation_id
|
||||
FROM
|
||||
FINAL qualify(ROW_NUMBER() over(PARTITION BY block_number, tx_hash, trace_index
|
||||
ORDER BY
|
||||
_inserted_timestamp DESC, is_pending ASC)) = 1
|
||||
FINAL qualify(ROW_NUMBER() over(PARTITION BY traces_id ORDER BY _inserted_timestamp DESC, is_pending ASC)) = 1
|
||||
Loading…
Reference in New Issue
Block a user