From 0e3e1205dfd7ef26f91584d80b2b64f8207d879e Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Mon, 12 Jul 2021 15:37:52 -0400 Subject: [PATCH] comments and version name --- build/build_rolling.sql | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/build/build_rolling.sql b/build/build_rolling.sql index 7136a9d..731fff5 100644 --- a/build/build_rolling.sql +++ b/build/build_rolling.sql @@ -495,7 +495,7 @@ gld AS ( -----when null, greatest/least is just going to act like coalesce ,greatest(least(o.sdate,gld.edat),gld.sdat) sdate ,ss.ssyr sseas - ,'actuals' "version" + ,'1+11' "version" ,'actuals' iter FROM rlarp.osm_dev o @@ -551,6 +551,8 @@ gld AS ( --forecast as negative and actuals as positive such that --adding the diff to the forecast yields actuals ,diff AS ( + ------------------------------------------------------------------------------------------------- + ----------------------forecast is negative------------------------------------------------------- SELECT -----------documents------------- null::int "ddord#" @@ -657,8 +659,8 @@ gld AS ( -----when null, greatest/least is just going to act like coalesce ,o.sdate ,o.sseas - ,'diff fct' AS version - ,'diff fct' AS iter + ,'1+11' AS version + ,'diff' AS iter FROM forecast_basis o CROSS JOIN tdr @@ -699,6 +701,8 @@ gld AS ( --,o.version --,o.iter UNION ALL + ------------------------------------------------------------------------------------------------- + ----------------------actuals are positive------------------------------------------------------- SELECT -----------documents------------- null::int "ddord#" @@ -805,8 +809,8 @@ gld AS ( -----when null, greatest/least is just going to act like coalesce ,o.sdate ,o.sseas - ,'diff act' AS version - ,'diff act' AS iter + ,'1+11' AS version + ,'diff' AS iter FROM actuals o CROSS JOIN tdr