From 0f29e9d41abc4d184367878356b15a620f2f0769 Mon Sep 17 00:00:00 2001 From: SebMelendez01 <78228475+SebMelendez01@users.noreply.github.com> Date: Thu, 21 Nov 2024 22:23:51 -0500 Subject: [PATCH] C911: fixing ton success flag (#636) --- models/staging/ton/fact_ton_fundamental_metrics.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/staging/ton/fact_ton_fundamental_metrics.sql b/models/staging/ton/fact_ton_fundamental_metrics.sql index 901844cd..4f3458d1 100644 --- a/models/staging/ton/fact_ton_fundamental_metrics.sql +++ b/models/staging/ton/fact_ton_fundamental_metrics.sql @@ -5,7 +5,7 @@ with flatten_ton_transaction as ( select - NOT ARRAY_CONTAINS(0, ARRAY_UNIQUE_AGG(success)) as success + NOT ARRAY_CONTAINS('false'::boolean, ARRAY_UNIQUE_AGG(success)) as success , trace_id , max(block_timestamp::date) as date , min_by(transaction_account_interface, lt) as interface