From 9da4bd0664a4bbfcc26c36e900a559b241b0bc6f Mon Sep 17 00:00:00 2001 From: Son Do <34179343+Sunny77D@users.noreply.github.com> Date: Thu, 21 Nov 2024 20:53:20 -0500 Subject: [PATCH] Fix Raydium incremental (#635) --- models/staging/raydium/fact_raydium_trading_volumes.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/staging/raydium/fact_raydium_trading_volumes.sql b/models/staging/raydium/fact_raydium_trading_volumes.sql index 9d00ebb4..aded9023 100644 --- a/models/staging/raydium/fact_raydium_trading_volumes.sql +++ b/models/staging/raydium/fact_raydium_trading_volumes.sql @@ -20,7 +20,7 @@ and abs( - ln(coalesce(nullif(swap_to_amount_usd, 0), 1)) / ln(10) ) < 1 {% if is_incremental() %} - AND block_timestamp::date >= (select dateadd('day', -3, max(block_timestamp)) from {{ this }}) + AND block_timestamp::date >= (select dateadd('day', -3, max(date)) from {{ this }}) {% else %} AND block_timestamp::date >= date('2022-04-22') {% endif %}