From 7aaf050c68cbeebcbc3276fb3d17f4e1a5a8c14e Mon Sep 17 00:00:00 2001 From: Son Do <34179343+Sunny77D@users.noreply.github.com> Date: Mon, 2 Dec 2024 16:40:56 -0800 Subject: [PATCH] Use Least ignore nulls instead of just least (#655) --- models/staging/raydium/fact_solana_dex_token_prices.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/staging/raydium/fact_solana_dex_token_prices.sql b/models/staging/raydium/fact_solana_dex_token_prices.sql index 8ff9521b..d91d2aa0 100644 --- a/models/staging/raydium/fact_solana_dex_token_prices.sql +++ b/models/staging/raydium/fact_solana_dex_token_prices.sql @@ -68,7 +68,7 @@ solana_dex_token_prices as ( select solana_dex_token_prices.date , token_address - , least(solana_dex_token_prices.price, token_prices.price) as price + , LEAST_IGNORE_NULLS(solana_dex_token_prices.price, token_prices.price) as price , number_of_swaps , unique_traders from solana_dex_token_prices