From 18dcd642be2b4ba5c8f637ec4346c216855d29b5 Mon Sep 17 00:00:00 2001 From: Alex Kan <29241719+akan72@users.noreply.github.com> Date: Thu, 5 Dec 2024 15:18:32 -0500 Subject: [PATCH] Cast APY columns as float --- models/staging/defillama/fact_defillama_yields.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models/staging/defillama/fact_defillama_yields.sql b/models/staging/defillama/fact_defillama_yields.sql index 495aa4f2..ed3b8eee 100644 --- a/models/staging/defillama/fact_defillama_yields.sql +++ b/models/staging/defillama/fact_defillama_yields.sql @@ -16,8 +16,8 @@ SELECT value:"project"::string AS project, value:"symbol"::string AS symbol, value:"tvlUsd"::float AS tvl_usd, - value:"apyBase" AS apy_base, - value:"apyReward" AS apy_reward, + value:"apyBase"::float AS apy_base, + value:"apyReward"::float AS apy_reward, value:"apy"::float AS apy, value:"pool"::string AS pool, value:"apyPct1D"::string AS apy_pct_1d,