Skip to content

Commit 0815b75

Browse files
authored
fix(sqlmesh): add columns to transactions staging model (#4679)
* fix(sqlmesh): add columns to transactions staging model * fix(sqlmesh): add l1_fee and receipt_status
1 parent e2213c5 commit 0815b75

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

warehouse/oso_sqlmesh/models/staging/superchain/stg_superchain__transactions.sql

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,15 @@ SELECT
3535
to_address,
3636
gas AS gas_used,
3737
gas_price,
38+
receipt_gas_used,
39+
receipt_effective_gas_price,
40+
receipt_l1_fee,
41+
receipt_status,
3842
value_lossless,
39-
@chain_name(chain) AS chain
43+
@chain_name(chain) AS chain,
44+
transaction_type
4045
FROM @oso_source('bigquery.optimism_superchain_raw_onchain_data.transactions')
4146
WHERE
4247
network = 'mainnet'
43-
AND receipt_status = 1
4448
AND gas > 0
4549
AND /* Bigquery requires we specify partitions to filter for this data source */ dt BETWEEN @start_dt AND @end_dt

0 commit comments

Comments
 (0)