From 4c0ebacb89b184b5c78bc9a3af4d1bc29950de69 Mon Sep 17 00:00:00 2001 From: desmond-hui <97470747+desmond-hui@users.noreply.github.com> Date: Fri, 8 Nov 2024 09:00:44 -0800 Subject: [PATCH] only check amount when the tx is successful (#703) --- models/gold/defi/defi__fact_stake_pool_actions.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/models/gold/defi/defi__fact_stake_pool_actions.yml b/models/gold/defi/defi__fact_stake_pool_actions.yml index 7fcca413..ee006ba6 100644 --- a/models/gold/defi/defi__fact_stake_pool_actions.yml +++ b/models/gold/defi/defi__fact_stake_pool_actions.yml @@ -63,7 +63,11 @@ models: description: "Amount in Lamports" tests: - dbt_expectations.expect_column_to_exist - - not_null: *recent_date_filter + - not_null: + config: + where: > + modified_timestamp >= current_date - 7 + AND succeeded - name: TOKEN description: "Token utilized in the stake pool action" tests: