mirror of
https://github.com/FlipsideCrypto/aleo-models.git
synced 2026-02-06 15:51:49 +00:00
quick fixes from comments
This commit is contained in:
parent
8fcefe42d1
commit
bfe11acb1e
@ -79,6 +79,7 @@ SELECT
|
||||
fee,
|
||||
0
|
||||
) AS fee,
|
||||
b.fee_payer,
|
||||
{{ dbt_utils.generate_surrogate_key(['a.tx_id']) }} AS fact_transactions_id,
|
||||
SYSDATE() AS inserted_timestamp,
|
||||
SYSDATE() AS modified_timestamp,
|
||||
|
||||
@ -22,4 +22,14 @@ SELECT
|
||||
inserted_timestamp,
|
||||
modified_timestamp
|
||||
FROM
|
||||
{{ ref('silver_stats__core_metrics_hourly') }}
|
||||
{{ ref('silver_stats__core_metrics_hourly') }}
|
||||
|
||||
{% if is_incremental() %}
|
||||
WHERE
|
||||
block_timestamp_hour >= (
|
||||
SELECT
|
||||
MAX(block_timestamp_hour)
|
||||
FROM
|
||||
{{ this }}
|
||||
) - INTERVAL '1 hour'
|
||||
{% endif %}
|
||||
@ -55,12 +55,8 @@ SELECT
|
||||
SYSDATE() AS inserted_timestamp,
|
||||
SYSDATE() AS modified_timestamp,
|
||||
'{{ invocation_id }}' AS _invocation_id
|
||||
|
||||
FROM
|
||||
{{ ref('silver__transitions_fee') }} ts
|
||||
JOIN
|
||||
{{ref ('silver__native_transfers')}} tf
|
||||
USING(tx_id)
|
||||
WHERE
|
||||
DATE_TRUNC('hour', ts.block_timestamp) < DATE_TRUNC(
|
||||
'hour',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user