Skip to content
Snippets Groups Projects
Commit 4b023cf5 authored by Michal Zander's avatar Michal Zander
Browse files

Remove materialized CTE from daily and montly aggregation

parent 6acf23e9
No related branches found
No related tags found
2 merge requests!168Update return types: VEST balances should be returned as strings to address JSON limitations,!166Fix yearly aggregation, replace view with helper function
Pipeline #117573 failed
......@@ -188,7 +188,7 @@ RETURN QUERY (
ROW_NUMBER() OVER (ORDER BY date) AS row_num
FROM date_series
),
get_daily_aggregation AS MATERIALIZED (
get_daily_aggregation AS (
SELECT
bh.account,
bh.nai,
......@@ -290,7 +290,7 @@ RETURN QUERY (
ROW_NUMBER() OVER (ORDER BY date) AS row_num
FROM date_series
),
get_montly_aggregation AS MATERIALIZED (
get_montly_aggregation AS (
SELECT
bh.account,
bh.nai,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment