flow-models/models/gold/testnet/testnet__fact_blocks.sql
Jack Forgash 05da02b5fe
AN-6550/flow testnet v2 (#483)
* flow testnet v2

* set batch sizes

* add QN node_url to sl testnet model

* upd node_url in testnet rt models

* add gha workflows for testnet

* testnet gold models

* upd tag on gold

* upd tests

* upd tests and set min to 280mm

* upd test - rm null

---------

Co-authored-by: shah <info@shahnewazkhan.ca>
2025-09-16 20:32:27 -06:00

24 lines
485 B
SQL

{{ config(
materialized = 'view',
tags = ['testnet']
) }}
SELECT
block_height :: INT AS block_height,
block_timestamp,
'testnet' AS network,
network_version,
'flow' AS chain_id,
tx_count,
id,
parent_id,
COALESCE (
blocks_id,
{{ dbt_utils.generate_surrogate_key(['block_height']) }}
) AS fact_blocks_id,
_inserted_timestamp,
inserted_timestamp,
modified_timestamp
FROM
{{ ref('silver__testnet_blocks') }}