From 642ebf867fe42df112bb0035d77954e55d08b51d Mon Sep 17 00:00:00 2001 From: Alex Kan <29241719+akan72@users.noreply.github.com> Date: Fri, 6 Dec 2024 15:08:02 -0500 Subject: [PATCH] Assign proper date column --- models/staging/defillama/fact_defillama_yield_historical.sql | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/models/staging/defillama/fact_defillama_yield_historical.sql b/models/staging/defillama/fact_defillama_yield_historical.sql index cc5041d0..3ffca1be 100644 --- a/models/staging/defillama/fact_defillama_yield_historical.sql +++ b/models/staging/defillama/fact_defillama_yield_historical.sql @@ -14,11 +14,10 @@ WITH max_extraction AS ( ) SELECT - date, + value:"timestamp"::date AS date, pool::varchar AS pool, value:"apy"::float AS apy, value:"apyBase"::float AS apy_base, value:"apyBase7d"::float AS apy_base_7d, value:"apyReward"::float AS apy_reward, - value:"timestamp"::date AS date FROM protocol_data, lateral flatten(input => data) \ No newline at end of file