Skip to content

Commit

Permalink
Assign proper date column
Browse files Browse the repository at this point in the history
  • Loading branch information
akan72 committed Dec 6, 2024
1 parent b056b17 commit 642ebf8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions models/staging/defillama/fact_defillama_yield_historical.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 642ebf8

Please sign in to comment.