flow-models/models/bronze/bronze__transactions.sql
Jack Forgash 45f72e71d8
An 3660/observability models (#155)
* blocks completeness

* block tx count external api model

* txs completeness model

* add col alias

* test result agg cte and temp test range

* curr range test

* revert source change - other pr

* xchain silver

* nuke api key & move to secrets, create workflow

* add scheduled tag

* update workflow w cache

* add obs tag

* rem testing range from txs complete

* comment out schedule and del double comman

* add default null for key var
2023-08-23 13:37:16 -06:00

25 lines
345 B
SQL

{{ config (
materialized = 'view',
tags = ['scheduled']
) }}
SELECT
record_id,
tx_id,
tx_block_index,
offset_id,
block_id,
block_timestamp,
network,
chain_id,
tx,
ingested_at AS _ingested_at,
_inserted_timestamp
FROM
{{ source(
'prod',
'flow_txs'
) }}
WHERE
_inserted_timestamp :: DATE >= '2022-05-01'