From 08e768eb22210d3b26c5aa8632111b124ebbf815 Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Wed, 2 Jun 2021 09:00:25 -0400 Subject: [PATCH] update target range latest forecast --- build/build_stage.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/build_stage.sql b/build/build_stage.sql index db18bb6..f14d8c3 100644 --- a/build/build_stage.sql +++ b/build/build_stage.sql @@ -6,8 +6,8 @@ TRUNCATE TABLE rlarp.osmf_dev; DROP TABLE IF EXISTS tdr; CREATE TEMP TABLE tdr AS ( SELECT - DATERANGE('2020-05-01','2021-05-01','[)') drange - ,DATERANGE(('2020-05-01'::date + '1 year'::interval)::date,('2021-05-01'::date + '1 year'::interval)::date,'[)') repl + DATERANGE('2020-06-01','2021-06-01','[)') drange + ,DATERANGE(('2020-06-01'::date + '1 year'::interval)::date,('2021-06-01'::date + '1 year'::interval)::date,'[)') repl ,'1 year'::interval AS incr ,(SELECT jsonb_agg(x.v) FROM (VALUES('copy'),('actuals'),('actuals_plug')) AS x(v)) iter );