From cfc633a99fce7e62919dd4885722196bb208bb1a Mon Sep 17 00:00:00 2001 From: Amisha Singla Date: Tue, 16 Jul 2024 14:46:18 -0500 Subject: [PATCH 1/2] Add definition of existing fields in history ledger table --- models/sources/src_history_ledgers.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/models/sources/src_history_ledgers.yml b/models/sources/src_history_ledgers.yml index b6cdb86..6a4e2f5 100644 --- a/models/sources/src_history_ledgers.yml +++ b/models/sources/src_history_ledgers.yml @@ -156,3 +156,23 @@ sources: - not_null: config: where: closed_at > current_timestamp - interval 2 day + - name: soroban_fee_write_1kb + description: '{{ doc("soroban_fee_write_1kb") }}' + tests: + - not_null: + config: + where: closed_at > current_timestamp - interval 2 day + + - name: node_id + description: '{{ doc("node_id") }}' + tests: + - not_null: + config: + where: closed_at > current_timestamp - interval 2 day + + - name: signature + description: '{{ doc("signature") }}' + tests: + - not_null: + config: + where: closed_at > current_timestamp - interval 2 day From 8e98d710455dad4a5013f9627781d723709ef703 Mon Sep 17 00:00:00 2001 From: Amisha Singla Date: Tue, 16 Jul 2024 14:56:41 -0500 Subject: [PATCH 2/2] Remove non-null test for soroban_fee_write_1kb --- models/sources/src_history_ledgers.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/models/sources/src_history_ledgers.yml b/models/sources/src_history_ledgers.yml index 6a4e2f5..657c0ec 100644 --- a/models/sources/src_history_ledgers.yml +++ b/models/sources/src_history_ledgers.yml @@ -158,10 +158,6 @@ sources: where: closed_at > current_timestamp - interval 2 day - name: soroban_fee_write_1kb description: '{{ doc("soroban_fee_write_1kb") }}' - tests: - - not_null: - config: - where: closed_at > current_timestamp - interval 2 day - name: node_id description: '{{ doc("node_id") }}'